From 8b4b20fe97a9e9067fc0ab9cc07cf3b3dd796217 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sun, 13 Feb 2022 15:34:44 +0100 Subject: [PATCH] PHP_CodeSniffer: Allow using strftime() --- lib/Pico.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Pico.php b/lib/Pico.php index 1a34986..ac01c30 100644 --- a/lib/Pico.php +++ b/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'] = '';