PHP_CodeSniffer: Allow using strftime()

pico-3.0
Daniel Rudolf 3 years ago
parent 68c47429ef
commit 8b4b20fe97
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
  1. 3
      lib/Pico.php

@ -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…
Cancel
Save