Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product add date wrong... but server time is right


dougnyc

Recommended Posts

Posted

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?

Posted

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 . . .

Posted

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?

Posted

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...