PHP_CodeSniffer: Allow using strftime()
This commit is contained in:
parent
68c47429ef
commit
8b4b20fe97
1 changed files with 3 additions and 0 deletions
|
@ -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'] = '';
|
||||
|
|
Loading…
Reference in a new issue