i expect a joomla warning that the article can`t be saved with a wrong formated date field
PHP Error Message
Call to a member function format() on false
Screenrecord
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
bug
|
||
I can work on this issue and provide a fix.
I can't replicate your findings sadly, I do NOT get the:
PHP Error Message
Call to a member function format() on false
It saves and on the Frontend I see the information I put in Testing Field: 01.01.20261
It perhaps 'should' have a warning message but that might be outside of this Issue's scope.
Actually 01.01.20261 is not "wrong format", it is much depend from your language.
Wrong for everyone would be something like 78.35.123 or foobar 12 2006 or any random text.
FYI, I tried changing the 01.01.20261 to 78.35.123 and was able to save successfully... same thing with foobar 12 2006.
FYI, I tried changing the 01.01.20261 to 78.35.123 and was able to save successfully... same thing with foobar 12 2006.
Adding to what Emmanuel says:
It fetches the current date.
FYI, I tried changing the 01.01.20261 to 78.35.123 and was able to save successfully... same thing with foobar 12 2006.
Adding to what Emmanuel says:
Recording.2026-02-03.112018.mp4
It fetches the current date.
yes, but if i try to type the Date manully and makes an mistake like 20263-01-01 the error appears, okay i`m currently under 5.4.2 but in 6.0.x it`s the same
FYI, I tried changing the 01.01.20261 to 78.35.123 and was able to save successfully... same thing with foobar 12 2006.
Adding to what Emmanuel says:
Recording.2026-02-03.112018.mp4
It fetches the current date.yes, but if i try to type the Date manully and makes an mistake like 20263-01-01 the error appears, okay i
m currently under 5.4.2 but in 6.0.x its the samecf-bug-2.mp4
Thanks, issue confirmed.
For reference. This is related to (but not the same):