Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Make timezone relative to UTC, not server?
Avatar
PaddleMan
Member
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 2:38 pm

Mr Papa said
then you will see users who dont select their own timzeone will get that as the default...

Sorry - but did not work.... I changed it from UTC+13 to Auckland. Saved the WP settings.... Registered a new user. Went to the new user's prfile and the time zone is set to UTC!!  This is going to annoy the visitors! I might hide away the option to change the time zone - that way every user will have the wrong local time - but at least they will all be consistently wrong and right relative to each other.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 2:43 pm

I dont understand that...  just tested it and worked for me...

and the create new member data is straight forward

    $useropts['timezone'] = get_option('gmt_offset');
    if (empty($useropts['timezone'])) $useropts['timezone'] = 0;
    $tz = get_option('timezone_string');
    if (empty($tz) || substr($tz, 0, 3) == 'UTC') $tz = 'UTC';
    $useropts['timezone_string'] = $tz;

as long as you have a valid timezone string, ie Auckland, it will init new users with that...

so puzzled... 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 19, 2012 - 2:56 pm

We are talking about the timezone set on the forum - look at that new users SP profile - not their Wp profile. What does THAT say?

andy-signature.png
YELLOW
SWORDFISH
Avatar
PaddleMan
Member
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 3:17 pm

Sorry - I guess I looked at the Last Visit date - not the Registered date!!! And you are both correct and I am sorry for reporting as not working.

It is a bit weird to see the registration date later than the last visit date!!

Image Enlarger

 

But when the user logs in with the password that was emailed during the registration, the last visited date also gets corrected.

I am a happy now. Thanks for helping me with this.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 19, 2012 - 4:08 pm

no worries... we got there! ;)

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626