Page 1 of 1

Error date in /hooks/_global

Posted: 2022-02-02 12:20
by lramirez
Hello good day
I keep a date error when registering a user login to the DB
Does anyone know what is going on please? :|
Everything was working fine and now it looks like the attached image.

Thanks

Re: Error date in /hooks/_global

Posted: 2022-02-02 12:28
by jsetzer
Well, if date format 'y' evaluates to "22" this year (2022), then format 'yy' will evaluate to "2222".

Can you try with capital letter 'Y' instead of 'yy'?

Re: Error date in /hooks/_global

Posted: 2022-02-02 13:04
by jsetzer

Code: Select all

$ts = date('d-m-Y H:i:s');