소스 검색

完善功能

gorden 7 달 전
부모
커밋
83046cc429
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/functions.php

+ 1 - 1
app/functions.php

@@ -49,7 +49,7 @@ if (!function_exists('month_12')){
     function month_12(){
         $months = [];
         for ($i=0;$i<12;$i++){
-            $months[$i] = date('Y/m',strtotime("-".$i."month"));
+            $months[$i] = date('Y/m',strtotime(date('Y-m-01')."-".$i."month"));
         }
 
         return $months;