Mercurial > hg > cmmr2012-drupal-site
diff core/misc/timezone.es6.js @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/misc/timezone.es6.js Thu Feb 28 11:14:44 2019 +0000 +++ b/core/misc/timezone.es6.js Thu Feb 28 13:11:55 2019 +0000 @@ -3,7 +3,7 @@ * Timezone detection. */ -(function ($, Drupal) { +(function($, Drupal) { /** * Set the client's system time zone as default values of form fields. * @@ -11,7 +11,9 @@ */ Drupal.behaviors.setTimezone = { attach(context, settings) { - const $timezone = $(context).find('.timezone-detect').once('timezone'); + const $timezone = $(context) + .find('.timezone-detect') + .once('timezone'); if ($timezone.length) { const dateString = Date(); // In some client environments, date strings include a time zone @@ -69,4 +71,4 @@ } }, }; -}(jQuery, Drupal)); +})(jQuery, Drupal);