diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-20 06:56:17 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-20 06:56:17 +0000 |
commit | 53f53b6db5949c7d8e6b57253987a4eddf7a26ca (patch) | |
tree | ad8ad53d7d351d6dbcf10e9a2f53a53cd6e40850 /modules/user/user.module | |
parent | 07211d4019373820abe9e429ff81656105dcbb9d (diff) | |
download | brdo-53f53b6db5949c7d8e6b57253987a4eddf7a26ca.tar.gz brdo-53f53b6db5949c7d8e6b57253987a4eddf7a26ca.tar.bz2 |
#11077 by mfb, KarenS, macgirvin, and jjkd: Can you say Daylight Savings Time? I bet you didn't think Drupal ever would! :)
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 19 |
1 files changed, 0 insertions, 19 deletions
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'; |