chengwl 4 anos atrás
pai
commit
5ed4a32edd
1 arquivos alterados com 1 adições e 1 exclusões
  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/>";