Topic: Timezone

Hi,
Just a minor issue, when a new user registers, his default
time zone is the same as the boards time zone.
Can I change this, so that the default timezone will be GMT,
unless the user changes it ?
Thank you.

Re: Timezone

Why not just set the default time for the board to GMT?

Re: Timezone

because the default timezone is the timezone the server is set to, why is it a problem users can change it when they register...

Re: Timezone

Hi,
The board is hosted on a US server, but intended for a UK audience, so the board TZ has
to be set to -6. When a new member signs up, his default TZ will also be -6, and yes he
can change this, but for simplicitys sake, I'd rather that his default TZ be 00 - GMT.
I was assuming maybe this could be done by changing a line or two of the script, but if
it isn't as simple as this, then please disregard the question.. ;o)

Re: Timezone

well it should be, let me just work out a simple hack...

open register.php
find

<option value="-12"<?php if ($pun_config['o_server_timezone'] == -12 ) echo ' selected="selected"' ?>>-12</option>

before that add

<?php $pun_config['o_server_timezone'] = 0 ?>

thats it save and upload, it should work but it might cause something dodgy on register.php if it doesn't work remove that line

6 (edited by Kleidis 2005-08-27 02:49)

Re: Timezone

That works great, thank you ! smile