gorden пре 11 месеци
родитељ
комит
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(){
     function month_12(){
         $months = [];
         $months = [];
         for ($i=0;$i<12;$i++){
         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;
         return $months;