Thread: Changing date

Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2022
    Location
    United Kingdon
    Posts
    94
    Plugin Contributions
    0

    Default Changing date

    I have just been changing the date format following the options in the Zencart Documentation.

    I did this word for word from the documentation and it broke my site.

    When in this file includes/languages/YOURTEMPLATE/lang.YOURLANGUAGE.php

    1a states to fine the following and change it from

    $locales = ['en_US', 'en_US.utf8', 'en', 'English_United States.1252'];

    and replace with:

    $locales = ['en_GB', 'en_GB.utf8', 'en']

    which I did and my site broke as refreshed with every change luckily enough, but when I looked at it again there is a ; missing on the end of the line replacing the original. Once I put that in my site works fine, just wanted to give someone a heads up in case as someone completely new may not realize.


    Also when changing the date format in the following /includes/languages/lang.english.php
    this is still set to US
    @setlocale(LC_TIME, ['en_US', 'en_US.utf8', 'en', 'English_United States.1252']);

    it doesnt say to change that to en GB is that correct to stay as English_United States?
    Last edited by Angiex1; 29 Oct 2022 at 10:24 PM.
    https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Changing date

    > there is a ; missing on the end of the line replacing the original.
    Thanks for reporting; will be fixed shortly.

    ...

    >it doesnt say to change that to en GB is that correct to stay as English_United States?
    I assume you mean the admin version. The change is similar (but admittedly not identical) to 1a. This will be clarified on the next doc update.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2022
    Location
    United Kingdon
    Posts
    94
    Plugin Contributions
    0

    Default Re: Changing date

    Your welcome and thank you will leave changing that bit for now :)
    https://www.angiesartspace.co.uk/ Zen cart version v1.5.8, MySQL Database version10.3.35-MariaDB-cll-lve, PHP Version 7.4.30, Template Bootstrap 4.

 

 

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. changing date of birth to DD/MM
    By jasbeanie in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Nov 2010, 12:16 PM
  3. Changing Date to UK format
    By startrek in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 May 2007, 08:54 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR