Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / misc / timezone.es6.js
index 0df3f9f15008033098a746e034a54875b43f6b3f..64c88c78d1b254289856d81dc7c6c659427bf4eb 100644 (file)
@@ -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);