Jump to content

Archived

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

syscon

Server Date - 8hr ahead

Recommended Posts

Where is oSC taking "Server Date" from?

In "Info" tab the time is 8hr ahead,

 

Server Date: 10/13/2012 03:54:50 Datebase Date: 10/12/2012 21:54:50

 

Datebase Date is correct.


#Joseph

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

×