[FIXED] User timezone not always saved correctly

Submitted by Anonymous on Mon, 03/19/2007 - 14:16
Written by

Version: UseBB 1.0.5

When a user changes his/her timezone (in Your Panel > Edit Options) to a half-hour timezone (e.g. GMT -3:30) it is not correctly saved to the database.

The cause is in sources/panel_options.php, line 58:

$_POST['timezone'] = ( valid_int($_POST['timezone']) ...

If we change it to:

$_POST['timezone'] = ( $_POST['timezone'] ...

Then half-hour timezones are correctly saved.

Fixed in CVS. Thanks for reporting.

Thanks. Pity I can't set my correct timezone here :)