Topic: Default timezone for guests

Maybe I've missed it but is there any way of changing the default timezone for guests so it's not the server's timezone? Right now my server is in PST and most visitors in GMT.

Re: Default timezone for guests

Admin>Options "Server timezone" ? I'm not sure if that's what you're looking for or not.

Looking for a certain modification for your forum? Please take a look here before posting.

3 (edited by Jansson 2006-01-02 00:35)

Re: Default timezone for guests

No, that just set the timezone so it can calculate the time for users who have set their local timezone. But dates/times will still show up as 16:30 for guests even if I posted it 00:30 GMT.

Re: Default timezone for guests

Someone else requested the addition of a "Default timezone" option, so you can expect that in 1.3.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Default timezone for guests

In the meantime, you can mod this feature by comment out line 124 in functions.php:
$pun_user['timezone'] = $pun_config['o_server_timezone'];

This will give guests the same timezone as the Guest user (default GMT).

Re: Default timezone for guests

Instead of setting to GMT I want to move from PST (server location) to EST +3.

    // Manual Adjustment of Guest timezone from current PST to EST.
    // CHANGE if server location changes
    $pun_user['timezone'] = $pun_config['o_server_timezone'] +3;

I appreciate the tip.
Mark

7

Re: Default timezone for guests

Changing this code did the trick. Thanks smile