Switch on error-reporting.
Add a calendar field to component and forget the translateformat="true"
or manipulate one of the calendar fields in article.xml
Deprecated: Function strftime() is deprecated in .... \libraries\src\Form\Field\CalendarField.php on line 322
php 8.2
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
PHP 8.x
Removed: No Code Attached Yet |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-24 09:23:39 |
Closed_By | ⇒ | joomdonation |
In the CalendarField
, we have two format parameters:
format
: Uses by client side (javascript) to parse/format datetime value. The format is equals with the format used in PHP strftime function https://www.php.net/manual/en/function.strftime.php (which is deprecated now)filterformat
: Uses by server side (PHP) to parser/format datetime value. The accepted format are defined here https://www.php.net/manual/en/datetime.format.phpTo prevent warnings, you need to:
filterformat
attribute to your field. The value in this attribute must be equivalent to the value in format
attribute. Example field:<field
name="created"
type="calendar"
label="Created Date"
format="%Y-%m-%d"
filterformat="Y-m-d"
showtime="true"
filter="user_utc"
/>
As the solution is there already, I'm closing this issue.
See PR #41266 & #41444