* Timezone detection.
*/
-(function ($, Drupal) {
+(function($, Drupal) {
/**
* Set the client's system time zone as default values of form fields.
*
*/
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
}
},
};
-}(jQuery, Drupal));
+})(jQuery, Drupal);