No Code Attached Yet
avatar fontanil
fontanil
16 Sep 2024

Steps to reproduce the issue

Joomla! 5.2.0-beta3-dev PHP 8.1 open a page using the calendar (here in Localise for J5)

Expected result

no message

Actual result

Deprecated: Function strftime() is deprecated in /home/www/developpement/joaktree2/libraries/src/Form/Field/CalendarField.php on line 323
Capture d’écran 2024-09-16 113639

System information (as much as possible)

Joomla! 5.2.0-beta3-dev PHP 8.1.2 9

Additional comments

The message is not displayed on a 5.1.4 website, PHP 8.2.5

avatar fontanil fontanil - open - 16 Sep 2024
avatar joomla-cms-bot joomla-cms-bot - change - 16 Sep 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Sep 2024
avatar fontanil
fontanil - comment - 16 Sep 2024

Code
if ($this->filterFormat) {
$date = \DateTimeImmutable::createFromFormat('U', strtotime($value));
$value = $date->format($this->filterFormat);
} else {
$value = strftime($this->format, strtotime($value));
}

avatar Hackwar Hackwar - change - 16 Sep 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-09-16 09:39:06
Closed_By Hackwar
avatar Hackwar Hackwar - close - 16 Sep 2024
avatar Hackwar
Hackwar - comment - 16 Sep 2024

This is a duplicate of #43947.

avatar fontanil
fontanil - comment - 16 Sep 2024

Sorry, I didn't see it.

Add a Comment

Login with GitHub to post a comment