projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
misc
/
timezone.es6.js
diff --git
a/web/core/misc/timezone.es6.js
b/web/core/misc/timezone.es6.js
index 0df3f9f15008033098a746e034a54875b43f6b3f..64c88c78d1b254289856d81dc7c6c659427bf4eb 100644
(file)
--- a/
web/core/misc/timezone.es6.js
+++ b/
web/core/misc/timezone.es6.js
@@
-3,7
+3,7
@@
* Timezone detection.
*/
* Timezone detection.
*/
-(function
($, Drupal) {
+(function($, Drupal) {
/**
* Set the client's system time zone as default values of form fields.
*
/**
* Set the client's system time zone as default values of form fields.
*
@@
-11,7
+11,9
@@
*/
Drupal.behaviors.setTimezone = {
attach(context, settings) {
*/
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
if ($timezone.length) {
const dateString = Date();
// In some client environments, date strings include a time zone
@@
-69,4
+71,4
@@
}
},
};
}
},
};
-}
(jQuery, Drupal)
);
+}
)(jQuery, Drupal
);