Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    23
    Plugin Contributions
    0

    help question 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Order Time Different From Actual Time

    Check in the free software add ons, link above left, for time offset
    A 3rd party module
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v154 Admin showing ADMIN_NAV_DATE_TIME_FORMAT instead of actual time/date
    By Ted Grapler in forum General Questions
    Replies: 3
    Last Post: 25 Jan 2016, 05:51 AM
  2. Correct time in ADMIN area, WRONG time on ORDER CONFIRMATION
    By Yoshi-M in forum General Questions
    Replies: 1
    Last Post: 16 Apr 2013, 07:44 PM
  3. Subtracting 15 minutes from Time, to display a pickup time
    By FoodDudes in forum General Questions
    Replies: 3
    Last Post: 26 Sep 2012, 02:20 PM
  4. auspost modulesIt fails to caculate the postage from time to time
    By zhshji in forum Addon Shipping Modules
    Replies: 3
    Last Post: 22 Jul 2009, 03:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg