소스 검색

Replace strftime (obsolete in PHP 8.1) by date

I didn't dig very deep to see side effects
Marc Sibert 3 년 전
부모
커밋
513e79d268
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'] = '';