From 88221c2f6751bc983a268cf21d5ddf39e8be515d Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 10 Aug 2004 01:30:09 +0000 Subject: #7646 and more: - Users who have not edited their account yet would be reset to GMT rather than the sitewide timezone. - Users who chose GMT (zero timezone) on a site with a non-zero timezone as default would have incorrect timezone. --- modules/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system.module') diff --git a/modules/system.module b/modules/system.module index 10199e075..1fa3e93e5 100644 --- a/modules/system.module +++ b/modules/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', 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); + $data[] = array('title' => t('Locale settings'), 'data' => form_select(t('Time zone'), 'timezone', strlen($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; } -- cgit v1.2.3