Jump to content


Photo

Users timezone when registering..


Apparently when a user registers it respects the server time, and not the setting set in the ACP > System Settings > Advanced sub-tab > Date, Time and Number Formats > Native server time zone

To update the timezone a user registers with you have to change the server time.

#813833
  • BomAle likes this

Status: Fixed
Version: 3.3.4
Fixed In: 3.3.5


3 Comments

Photo
Ryan Ashbrook
Aug 27 2012 01:16 PM
I can't personally reproduce this, however it can happen if you are using a login method other than Internal. (LDAP, for example, creates the account but does not define a timezone, so it will just default to GMT).

EDIT: Actually, further to that, anything that doesn't use the public registration form would likely be affected by this (LDAP, External Auth, basically any login method that creates a local member upon login).

Changing this in login_core:

$member['members']['members_created_remote']    = true;
        $member['members']['members_display_name']        = ( $member['members']['members_display_name'] ) ? $member['members']['members_display_name'] : $member['members']['name'];

To this:

$member['members']['members_created_remote']    = true;
        $member['members']['members_display_name']        = ( $member['members']['members_display_name'] ) ? $member['members']['members_display_name'] : $member['members']['name'];
        $member['members']['time_offset']                = ( $member['members']['time_offset'] ) ? $member['members']['time_offset'] : $this->settings['time_offset'];

Should fix it in that instance, I believe.
Updating Status to: Confirmed - General

-
Updating Fixed In to: 3.3.5
Updating Status to: Fixed

-