The system module should default the user timezone to the site timzone, not to GMT.

I fixed this as follows. Not that I also fixed "appropriate" vs. "appropriately".

diff -r1.138 system.module
98c98,100
< $data[t('Locale settings')] = form_select(t("Time zone"), "timezone", $edit["timezone"], $zones, t("Select what time you currently have and your time zone settings will be set appropriate."));
---
> // set the default to be the same as the site default
> $seltz = $edit["timezone"] ? $edit["timezone"] : variable_get('date_default_timezone', 0);
> $data[t('Locale settings')] = form_select(t("Time zone"), "timezone", $seltz, $zones, t("Select what time you currently have and your time zone settings will be set appropriately."));

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mda-1’s picture

I was the submitter of this bug. I guess there is no way to take ownership of an anonymous post after it has been submitted.

Dries’s picture

Care to attach a patch? Also, when you add a patch, set the status to 'patch' so it ends up in the patch queue.

TDobes’s picture

Assigned: Unassigned » TDobes
FileSize
1.07 KB

Patch is now attached and in appropriate format.

jhriggs’s picture

+1. (I have modified my sites similarly.) The help text/description is awful, though. It doesn't really say anything meaningful. Can we rewrite it? Perhaps something along the lines of "Select your current time zone. Dates and times throughout this site will be displayed using this time zone."

Steven’s picture

I think the patch needs to have isset($edit['timezone']) rather than just $edit['timezone'] in the conditional. If a site's timezone is set to non-GMT, and a user sets it to GMT, then his/her zone would keep getting reset when he went to the account configuration.

TDobes’s picture

Here's an updated patch, using an isset() as suggested by Steven and a modified help text similar to that written by jhriggs.

Steven’s picture

Applied to HEAD.

TDobes’s picture

Actually, no. This never got committed. I'm putting it back in the patch queue so it'll be noticed.

Steven’s picture

Sorry, the up-to-date check failed when I commited it, and I didn't notice. It's been applied now.

Anonymous’s picture