Replace strftime (obsolete in PHP 8.1) by date

I didn't dig very deep to see side effects
This commit is contained in:
Marc Sibert 2022-06-24 17:31:22 +02:00 committed by GitHub
parent ff5e345e58
commit 513e79d268
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1524,7 +1524,7 @@ class Pico
$encodingList[] = 'Windows-1252';
}
$rawFormattedDate = strftime($this->getConfig('date_format'), $meta['time']);
$rawFormattedDate = date($this->getConfig('date_format'), $meta['time']);
$meta['date_formatted'] = mb_convert_encoding($rawFormattedDate, 'UTF-8', $encodingList);
} else {
$meta['date_formatted'] = '';