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.
You are not logged in. Please login or register.
PunBB Forums → Feature requests → 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.
Admin>Options "Server timezone" ? I'm not sure if that's what you're looking for or not.
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.
Someone else requested the addition of a "Default timezone" option, so you can expect that in 1.3.
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).
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
Changing this code did the trick. Thanks
PunBB Forums → Feature requests → Default timezone for guests
Powered by PunBB, supported by Informer Technologies, Inc.