If this is your first visit, check our documentation. To post, register or login.

Changing date

Started by angiex1 on 29 Oct 2022, 9:21 PM · Views: 1,478

Results 1 to 3 of 3
29 Oct 2022, 9:21 PM
#1
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

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?

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.

30 Oct 2022, 12:06 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

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 Support
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.

30 Oct 2022, 9:20 AM
#3
angiex1 avatar

angiex1

New Zenner

Join Date:
Apr 2022
Location:
United Kingdon
Posts:
94
Plugin Contributions:
0

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.