PHP_CodeSniffer: Allow using strftime()
This commit is contained in:
parent
68c47429ef
commit
8b4b20fe97
@ -1534,7 +1534,10 @@ class Pico
|
|||||||
$encodingList[] = 'Windows-1252';
|
$encodingList[] = 'Windows-1252';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:disable Generic.PHP.DeprecatedFunctions
|
||||||
$rawFormattedDate = strftime($this->getConfig('date_format'), $meta['time']);
|
$rawFormattedDate = strftime($this->getConfig('date_format'), $meta['time']);
|
||||||
|
// phpcs:enable
|
||||||
|
|
||||||
$meta['date_formatted'] = mb_convert_encoding($rawFormattedDate, 'UTF-8', $encodingList);
|
$meta['date_formatted'] = mb_convert_encoding($rawFormattedDate, 'UTF-8', $encodingList);
|
||||||
} else {
|
} else {
|
||||||
$meta['date_formatted'] = '';
|
$meta['date_formatted'] = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user