dougnyc Posted December 19, 2003 Posted December 19, 2003 Anywhere the products_date_added and the now() show up it puts the wrong date into the database. Friday when it's really Thursday. However the time on the Who's Online page is accurate. Any one have this problem or some ideas for me?
Guest Posted December 19, 2003 Posted December 19, 2003 one could be based upon your server time, the other could be based upon your local system. ask your host if they will tell you the time zone the server is setup for. you may find, it is set to GMT . . .
dougnyc Posted December 19, 2003 Author Posted December 19, 2003 My server time is set to PST but the main server could be set to GMT which can't be changed. Is there a way to get OSC to check the time setup on my virtual server instead of the actual machine? Or any other way to get the time right?
Guest Posted December 19, 2003 Posted December 19, 2003 now() is a MySQL command. MySQL probably uses UTC (essentially GMT for your purposes). You should be able to translate this manually if necessary. The PHP date/time functions are described here. Hth, Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.