Browse Source

Replace strftime (obsolete in PHP 8.1) by date

I didn't dig very deep to see side effects
Marc Sibert 3 years ago
parent
commit
513e79d268
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Pico.php

+ 1 - 1
lib/Pico.php

@@ -1524,7 +1524,7 @@ class Pico
                         $encodingList[] = 'Windows-1252';
                     }
 
-                    $rawFormattedDate = strftime($this->getConfig('date_format'), $meta['time']);
+                    $rawFormattedDate = date($this->getConfig('date_format'), $meta['time']);
                     $meta['date_formatted'] = mb_convert_encoding($rawFormattedDate, 'UTF-8', $encodingList);
                 } else {
                     $meta['date_formatted'] = '';