updated core to 8.6.1 via composer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user