date format on v1.0.8.16

Open to all! Ask other shopowners for help.
Post Reply
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

date format on v1.0.8.16

Post by Omar_one »

Hello,
is there any way to fix the date format on v1.0.8.16, after the php updated to 8.3 all the date look like this

Code: Select all

%05/%24/%2025
thanks in advance for your help
Omar

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: date format on v1.0.8.16

Post by ecartz »

It sounds like they did something to strftime.

If you can't simply update to the latest version, copy these lines: https://github.com/CE-PhoenixCart/Phoen ... hp#L21-L23

Code: Select all

$long_date_formatter = new IntlDateFormatter('en', IntlDateFormatter::FULL, IntlDateFormatter::NONE);
$short_date_formatter = new IntlDateFormatter('en', IntlDateFormatter::SHORT, IntlDateFormatter::NONE);
$date_time_formatter = new IntlDateFormatter('en', IntlDateFormatter::SHORT, IntlDateFormatter::LONG);
You might have to play with them to get them right for Finnish. I believe Finnish is 'fi' instead of 'en'. NONE, SHORT, MEDIUM, LONG, FULL. The first one is the date; the second is the time. The ones that have NONE as the time are date-only.

Copy everything in https://github.com/CE-PhoenixCart/Phoen ... ed/1.0.9.3 except product_builder.php, split_page_results.php, and url_query.php. It's fine for the directory to be named 1.0.9.3 even if the version is something else.
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: date format on v1.0.8.16

Post by Omar_one »

ecartz wrote: Sat May 24, 2025 9:58 pm If you can't simply update to the latest version
I am on the way to v1.1.0.2 and and the Finnish language almost done and working well on our dev version , till then we are on v1.0.8.16.
Many thanks for your quick reply and the invaluable support you offer.. that fix it

Br
Omar


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply