diff options
author | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
---|---|---|
committer | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
commit | 89f6acb734e93d22468e25f59e0bf59ca2d8aaa5 (patch) | |
tree | d594c0079c7c557feb5fbcbb76c3a67eca744d8f /core/misc/timezone.es6.js | |
parent | da115f6ccffb6c9aeb368b56b8664332968a65e6 (diff) | |
download | drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.tar.gz drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.zip |
Issue #3174884 by raman.b, alexpott, lauriii, zrpnr, nod_: Update yarn dependencies for Drupal 9.1.0
Diffstat (limited to 'core/misc/timezone.es6.js')
-rw-r--r-- | core/misc/timezone.es6.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/misc/timezone.es6.js b/core/misc/timezone.es6.js index 530c5c8c08c9..7503c5f84bc9 100644 --- a/core/misc/timezone.es6.js +++ b/core/misc/timezone.es6.js @@ -3,7 +3,7 @@ * Timezone detection. */ -(function($, Drupal) { +(function ($, Drupal) { /** * Set the client's system time zone as default values of form fields. * @@ -11,9 +11,7 @@ */ 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 tz = new Intl.DateTimeFormat().resolvedOptions().timeZone; // Ensure that the timezone value returned by the browser is supported |