Page 1 of 1

Which is more important, PHP 8.2 support now or localized dates?

Posted: Sat Jan 20, 2024 3:24 pm
by ecartz
As you may know, PHP 8.2 drops support for strftime. Since PHP didn't see fit to provide a core replacement, handling that situation is complicated. One suggestion to make that simple would be to drop having dates like Wednesday, January 17th, 2024 12:01 PM and instead have dates like 2024-01-17T12:01:00 that show to customers and in admin.

Since dropping localized dates is a rather straightforward change, it's something that we could do now, We're months away from a full replacement for strftime (and PHP 8.2 support).

Re: Which is more important, PHP 8.2 support now or localized dates?

Posted: Sat Jan 20, 2024 8:02 pm
by Kofod95
ecartz wrote: Sat Jan 20, 2024 3:24 pm 2024-01-17T12:01:00 that show to customers
Something like that would be a shame, I think. But I personally don't think "2024-01-17" without the timestamp (or if the "T" was replaced by a space) would be an issue.

//Daniel

Re: Which is more important, PHP 8.2 support now or localized dates?

Posted: Sun Jan 21, 2024 11:09 am
by 14Steve14
I must confess that I find looking a day and date so much easier. Not to bothered about the time, but again, at times this does come in handy when scanning through things like the orders page. It allows us to see when the website is at its busiest.

It would only really be a case of getting used to how it is coded from what it was and adjusting the way we do things accordingly.

Is php 8.2 that important now. I know my hosts would prefer everyone on the latest version but they still offer php 7 and below. I did look at some hosts and they have a minimum of php8 so as long as it works on that then there should be time to get ready for a higher version.