Page 1 of 1

date format on v1.0.8.16

Posted: Sat May 24, 2025 9:17 pm
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

Re: date format on v1.0.8.16

Posted: Sat May 24, 2025 9:58 pm
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.

Re: date format on v1.0.8.16

Posted: Sat May 24, 2025 11:15 pm
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