From 53f53b6db5949c7d8e6b57253987a4eddf7a26ca Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 20 Nov 2008 06:56:17 +0000 Subject: #11077 by mfb, KarenS, macgirvin, and jjkd: Can you say Daylight Savings Time? I bet you didn't think Drupal ever would! :) --- modules/user/user.module | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 130c0f07e..6e8b83a80 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2390,25 +2390,6 @@ function user_register() { $form = array_merge($form, $extra); } - if (variable_get('configurable_timezones', 1)) { - // Override field ID, so we only change timezone on user registration, - // and never touch it on user edit pages. - $form['timezone'] = array( - '#type' => 'hidden', - '#default_value' => variable_get('date_default_timezone', NULL), - '#id' => 'edit-user-register-timezone', - ); - - // Add the JavaScript callback to automatically set the timezone. - drupal_add_js(' -// Global Killswitch -if (Drupal.jsEnabled) { - $(document).ready(function() { - Drupal.setDefaultTimezone(); - }); -}', 'inline'); - } - $form['submit'] = array('#type' => 'submit', '#value' => t('Create new account'), '#weight' => 30); $form['#validate'][] = 'user_register_validate'; -- cgit v1.2.3