PHP_CodeSniffer: Allow using strftime()

This commit is contained in:
Daniel Rudolf 2022-02-13 15:34:44 +01:00
parent 68c47429ef
commit 8b4b20fe97
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -1534,7 +1534,10 @@ class Pico
$encodingList[] = 'Windows-1252';
}
// phpcs:disable Generic.PHP.DeprecatedFunctions
$rawFormattedDate = strftime($this->getConfig('date_format'), $meta['time']);
// phpcs:enable
$meta['date_formatted'] = mb_convert_encoding($rawFormattedDate, 'UTF-8', $encodingList);
} else {
$meta['date_formatted'] = '';