Date Format differs

Discussions related to the 1.36.x series of ZoneMinder
User avatar
iconnor
Posts: 3269
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Date Format differs

Post by iconnor »

I've just pushed to master a huge rewrite involving replacing all occurrences of strftime because it is now deprecated.

I implemented a local config option, as well as date format, time format and datetime format overrides.

I am hoping this satisfies everyone's date formatting needs.
RonRN18
Posts: 58
Joined: Tue Aug 13, 2019 1:00 am

Re: Date Format differs

Post by RonRN18 »

iconnor wrote: Wed Jun 01, 2022 8:58 pm I've just pushed to master a huge rewrite involving replacing all occurrences of strftime because it is now deprecated.

I implemented a local config option, as well as date format, time format and datetime format overrides.

I am hoping this satisfies everyone's date formatting needs.
Cool, that will solve two issues. When I first updated to Ubuntu 22.04, where PHP8.1 was the default, it was constantly showing up as errors that "strftime" was deprecated. It was getting quite annoying to see that many errors piling up in such a short period of time.

I've tried messing with the /www/lang/en_us.php to get the date format to look proper, as it defaults to the European format after every update; I live in the United States. I have wished that this could be set from the web interface, similar to how I've modified the timestamp overlay in the "Monitor" setup.
fahnoe
Posts: 11
Joined: Tue Feb 15, 2011 1:32 pm

Re: Date Format differs

Post by fahnoe »

iconnor wrote: Wed Jun 01, 2022 8:58 pm I've just pushed to master a huge rewrite involving replacing all occurrences of strftime because it is now deprecated.

I implemented a local config option, as well as date format, time format and datetime format overrides.

I am hoping this satisfies everyone's date formatting needs.
Did this wind up in v1.36.16 or .17? I'm on v1.36.16 and don't seem to find anything related in the Options pages of the web console. I didn't note anything about date format changes in the release notes either. Not being picky, just trying to figure out how to make use of your new options. Maybe I've just not had enough coffee yet...

Thanks.

--Larry
User avatar
iconnor
Posts: 3269
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Date Format differs

Post by iconnor »

It's in master. Not in 1.36 yet. Too big of a change. But it's coming.
Post Reply