chengwl %!s(int64=4) %!d(string=hai) anos
pai
achega
5ed4a32edd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/IndexController.php

+ 1 - 1
controllers/IndexController.php

@@ -27,7 +27,7 @@ class IndexController extends \app\controllers\HomeController
         $storeData=$ga->storeData($store,$start_day,$end_day);
         $storeSellData=$ga->storeSellData($store,$start_day,$end_day,'week');
         foreach($storeSellData as $v){
-           $timestr=$v['year']."W".$v['week'];    
+           $timestr=$v['isoYear']."W".$v['isoWeek'];    
            $time=date("Y-m-d",\strtotime($timestr));       
            echo $time."<br/>";