syscon Posted October 13, 2012 Share Posted October 13, 2012 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 Link to comment Share on other sites More sharing options...
MrPhil Posted October 31, 2012 Share Posted October 31, 2012 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.