View Full Version : Having a time issue on my website
TalkVirginia
02-14-2009, 08:10 PM
Down at the bottom my site is showing it is set for GMT -5 with the correct time. However, message post times seem to be way off.. almost 7 hours off. Any idea what would cause this? I just posted a message on my site and site time is showing 5:53pm however the message post time is showing Today at 12:13pm.
snakes1100
02-14-2009, 09:01 PM
What time zone is set in the admincp vbulletin options?
TalkVirginia
02-14-2009, 09:12 PM
GMT -5 Eastern Time (US & Canada), Bogota, Lima
snakes1100
02-14-2009, 09:22 PM
For guests it shows GMT -4 on your forums.
If the date & time options in the admincp is set for GMT -5, then you most likely have a server issue, the DATE cmd would tell you what the server is set to via ssh.
You can slap this in a php and upload it via ftp and tell us what the server date & time is.
<? print(Date("1 F d, Y")); ?>
TalkVirginia
02-15-2009, 12:37 AM
That code returned:
1 February 14, 2009
Dismounted
02-15-2009, 03:23 AM
Snakes most likely typed up the wrong code, use this instead:
<?php print(date('r')); ?>
TalkVirginia
02-15-2009, 07:55 AM
Snakes most likely typed up the wrong code, use this instead:
<?php print(date('r')); ?>
now it returns
Sun, 15 Feb 2009 02:54:22 -0700
Dismounted
02-15-2009, 11:18 AM
It looks like vBulletin is not compensating for the timezone of the server somehow. If you are running PHP 5.2+, try adding this to the end of your config.php:
date_default_timezone_set('GMT');
TalkVirginia
02-15-2009, 11:48 AM
It looks like vBulletin is not compensating for the timezone of the server somehow. If you are running PHP 5.2+, try adding this to the end of your config.php:
date_default_timezone_set('GMT');
I added that piece of code and it seems to have fixed it. Thank you very much! :)
Jim
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.