Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Server Date - 8hr ahead


syscon

Recommended Posts

  • 3 weeks later...

The server date is set in catalog/admin/includes/functions/general.php's tep_get_system_information(). It calls date('Y-m-d H:i:s O T'). Is your server 8 timezones away from you? If not, might it be GMT? Either way, if it's PHP 5.1 or higher, you probably need to set the default timezone. In a php.ini file you should be able to enter date.timezone='America/Los_Angeles' (or whatever the correct PHP timezone is, see http://www.php.net/manual/en/timezones.america.php). MySQL normally enters the server's timezone for now(), while, a server uses GMT/UTC for time() and may or may not have a default date.timezone setting.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...