diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-06 04:30:50 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-06 04:30:50 +0000 |
commit | f584cdf74fb734e839cebe40631bd913c766a553 (patch) | |
tree | 7b4f4d4118dd5a3d54b396bae783eb09ec123795 /modules/system/system.module | |
parent | 35cad55e5b2b151306e82cce647c0cb3a2d70166 (diff) | |
download | brdo-f584cdf74fb734e839cebe40631bd913c766a553.tar.gz brdo-f584cdf74fb734e839cebe40631bd913c766a553.tar.bz2 |
#8154 - Default user timezone to site timezone
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 170fd8090..10199e075 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -106,7 +106,7 @@ function system_user($type, $edit, &$user, $category = NULL) { if (variable_get('configurable_timezones', 1)) { $zones = _system_zonelist(); - $data[] = array('title' => t('Locale settings'), 'data' => form_select(t('Time zone'), 'timezone', $edit['timezone'], $zones, t('Select what time you currently have and your time zone settings will be set appropriately.')), 'weight' => 2); + $data[] = array('title' => t('Locale settings'), 'data' => form_select(t('Time zone'), 'timezone', isset($edit['timezone']) ? $edit['timezone'] : variable_get('date_default_timezone', 0), $zones, t('Select your current local time. Dates and times throughout this site will be displayed using this time zone.')), 'weight' => 2); } return $data; } |