Log in

View Full Version : vB 3.5 Timezoneoffset difference?


Boofo
08-15-2005, 07:00 PM
Can anyone tell me what has changed in this code from 3.0 to 3.5 where the DST code no longer works in it?

$servertime = ($timeoffset - ($timediff)); //Server is on GMT time
if ($bbuserinfo['dstonoff'])
{
// DST is on, add an hour
$servertime++;
if (substr($servertime, 0, 1) != '-')
{
// recorrect so that it has + sign, if necessary
$servertime = '+' . $servertime;
}
}

Boofo
08-16-2005, 02:46 PM
Nobody can help me here? :(

Boofo
08-17-2005, 05:06 AM
Bingo! Got it figured out. Closing thread.