View Full Version : Times all screwed up - plz help!
X-Fan
01-09-2003, 02:50 PM
Okay, I'm pulling my hair out over this one... I've got my server's timezone set to US Eastern. I've got my site's Admin CP timezone set to US Eastern. I've got my personal account's offset in User CP set to Adelaide (GMT +9:30) but its reporting back that my local time is 5:05 pm when its 3:15 am!
Can someone help me solve this, as it's driving me nuts!
Boofo
01-09-2003, 03:11 PM
What is your time in Windows set to?
X-Fan
01-09-2003, 09:19 PM
My local time, but that doesn't affect my site's time.
I've also got the User's local time in post and Today/Yesterday hacks installed, and I've triple-checked them to make sure they were added correctly.
Zaeolos
02-07-2003, 03:02 AM
I had a problem with the server just having the wrong time and I got tired of asking the Hosting Company to fix it so i did some digging. Look in the /admin/function.php file and look for this:
// ###################### Start vbdate #######################
function vbdate($format,$timestamp) {
global $bbuserinfo,$timeoffset;
return date($format,$timestamp+($bbuserinfo['timezoneoffset']-$timeoffset)*5400);
That last line was 3265 for me. where you see 5400, it was originally 3600, I just added 1800 to it which is 30 minutes, which is how much my time was off. this fixed everything with that one change.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.