Here's the code with the changes you suggested.
PHP Code:
$time_lastup = strtotime($weatherdata[lastup]);
$time_lastup-=($bbuserinfo['timezoneoffset']+$timeoffset)*3600;
$weather[updatedate] = vbdate($dateformat,$time_lastup);
$weather[updatetime] = vbdate($timeformat,$time_lastup);
It almost works. The time is showing (when logged in) at 1/2 hour ahead of my time. At 7:10 pm it shows 7:40 pm. But when logged out it shows 11 1/2 hours behind. It shows yesterday at 7:40 pm when it is today at 7:10 pm.
Quote:
Originally posted by Xenon
hmm, try to replace all + with an - and all - with an +
|