Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: After changing date format still getting error

    For both files (admin and store side) it should be

    PHP Code:
    // look in your $PATH_LOCALE/locale directory for available locales..
    $locales = array('en_AU''en_AU.utf8''en''English_Australia.1252');
    @
    setlocale(LC_TIME$locales); 

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: After changing date format still getting error

    There are actually three (3) files that come into play here:
    1. /YOUR_ADMIN/includes/languages/english.php, as you've described
    2. /includes/languages/YOUR_TEMPLATE/english.php, where you'll enter the updated define statements and the re-arrangement of the zen_date_raw function
    3. /includes/languages/english.php, which is loaded after the template-version, so all the locale-setting statements that you've identified for the template-override directory must be specified here for those settings to take effect.

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: After changing date format still getting error

    Quote Originally Posted by lat9 View Post
    There are actually three (3) files that come into play here:
    1. /YOUR_ADMIN/includes/languages/english.php, as you've described
    2. /includes/languages/YOUR_TEMPLATE/english.php, where you'll enter the updated define statements and the re-arrangement of the zen_date_raw function
    3. /includes/languages/english.php, which is loaded after the template-version, so all the locale-setting statements that you've identified for the template-override directory must be specified here for those settings to take effect.
    Hmm... in more than 8 years of using ZC for many stores, I never changed anything in the core english.php file and always had the desired result using the template override file, no problems whatsoever. So, I am not so sure if it is necessary to change the locale settings in the core english.php file as well.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: After changing date format still getting error

    Too late to edit my post above.

    The Wiki does not specify that one needs to change the core file as well. Instead it clearly states to copy the core file first and then make the changes (using the override as usual).

    See https://www.zen-cart.com/wiki/index.php/Date_Format

 

 

Similar Threads

  1. v154 Changing Date Format in 1.54 to UK
    By nigelt74 in forum General Questions
    Replies: 5
    Last Post: 20 Jul 2015, 12:18 PM
  2. v154 V154 Still Getting Handshake Error After Upgrade
    By Rick5150 in forum PayPal Express Checkout support
    Replies: 31
    Last Post: 6 Feb 2015, 10:01 PM
  3. v154 Still getting checkout error for PayPal even after update.
    By Jen Will in forum PayPal Express Checkout support
    Replies: 21
    Last Post: 5 Feb 2015, 07:42 AM
  4. Changing Date to UK format
    By startrek in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 May 2007, 08:54 PM

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