فهرست منبع

Corrected a small bug when calculating the weeks start and end times.

Adam Day 9 سال پیش
والد
کامیت
2e099a38a3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      application/models/weeklyReportModel.php

+ 1 - 1
application/models/weeklyReportModel.php

@@ -52,7 +52,7 @@ class weeklyReportModel extends Staple_Model
         $ret['start']['year'] = $dto->format('Y');
 
         //Week End
-        $dto->modify('+6 days')->setTime(23,59,59);
+        $dto->modify('+6 days')->setTime(24,0,0);
         $ret['end']['unix'] = $dto->format('U');
         $ret['end']['formatted'] = $dto->format('Y-m-d h:i:s');
         $ret['end']['dayName'] = $dto->format('l');