Hi,
Current setup
ZC 158
PHP 7.4
Bootstrap 4
OPC
I am implementing the usual language file changes required to change the date format mm/dd/yyyy to the dd/mm/yyyy.
Following the instructions on the Zen Cart docs pages for 158 it is very similar to the setup for 157 except the changes to the includes/functions/functions_dates.php file (very straight forward) and the admin/includes/languages/extra_definitions/lang.admin_overrides.php.
I created the lang.admin_overrides.php file as it wasn't already in my file structure and added the following as per instructions
Code:
<?php@setlocale(LC_TIME, ['en_GB', 'en_GB.utf8', 'en']);
$define['DATE_FORMAT'] = 'd/m/Y';
$define['DATE_FORMAT_SHORT'] = '%d/%m/%Y';
$define['DATE_FORMAT_SPIFFYCAL'] = 'dd/MM/yyyy';
$define['ENTRY_DATE_OF_BIRTH_ERROR'] = ' <span class="errorText">(eg. 21/05/1970)</span>';
$define['PHP_DATE_TIME_FORMAT'] = 'd/m/Y H:i:s';
return $define;
This method did not change any of my admin date stamps, the only way to get the dates to be in the correct UK format was to change the info in admin/includes/languages/lang.english.php and find and change the @setlocal and $define lines in there.
Bookmarks