Quote:
Originally posted by Erwin Loh
On second thoughts, I don't think the updated code is working. On the "visitors who have visited today" I am seeing members who was on definitely yesterday according to my timezone, and not since. I think you are using the DEFAULT timezone for VB - not the server one, but the default one, not the member's own timezone.
Server time zone: GMT -6
VB default: GMT 0
My timezone: GMT +10
Instead of using GMT -6 which was what it was using, it is now using GMT 0 (I think).
|
from the timezone-fix, which was posted
here , please delete this line:
PHP Code:
$unixtoday = $timeoffset * 3600 + $unixtoday;
and replace this line:
PHP Code:
$unixtoday = $bbuserinfo[timeoffset] * 3600 + $unixtoday;
with this:
PHP Code:
$unixtoday = $unixtoday + ($bbuserinfo['timezoneoffset'] - $timeoffset) * 3600;
and test it again.
i hope so it will work well. please give me your feedback about it.