Zen Cart Logo
Forums / Managing Customers and Orders / Order Time Different From Actual Time

Order Time Different From Actual Time

Views: 825

Results 1 to 2 of 2
10 Feb 2011, 12:24 PM
#1
bookwise avatar

bookwise

New Zenner

Join Date:
Jun 2008
Posts:
23
Plugin Contributions:
0

Order Time Different From Actual Time

I am in New Zealand and I think my host is in England. I notice that the email confirmation of the order shows the correct date but the orders have the wrong date in the database and in admin. This is a real problem as they are actually showing a day behind because there is a 12 hour time differential.

This is my includes/languages/english.php settings:

// look in your $PATH_LOCALE/locale directory for available locales..
// on RedHat try 'en_US'
// on FreeBSD try 'en_US.ISO_8859-1'
// on Windows try 'en', or 'English'
@setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}
}

How can I fix this problem. I am assuming there is something else I need to set. Thanks in advance:lookaroun

10 Feb 2011, 12:30 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Order Time Different From Actual Time

Check in the free software add ons, link above left, for time offset
A 3rd party module