]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-90] Исправлено 50-59
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 8 Aug 2024 12:48:17 +0000 (15:48 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 8 Aug 2024 12:48:17 +0000 (15:48 +0300)
erp24/services/MotivationService.php

index 1566477bc0453b080e85d488931d7de2fc3e4f82..c7798002c12a9b3ec2d447978b9bfb4b9432ce61 100644 (file)
@@ -336,7 +336,7 @@ class MotivationService
 
         foreach (range(1, 5) as $ind) {
             $weekStart = date("Y-m-d 00:00:00", strtotime("+" . (($ind - 1) * 7) . ' days', strtotime($monthStart)));
-            $weekEnd = date("Y-m-d 23:50:50", strtotime("+" . ($ind * 7 - 1) . ' days', strtotime($monthStart)));
+            $weekEnd = date("Y-m-d 23:59:59", strtotime("+" . ($ind * 7 - 1) . ' days', strtotime($monthStart)));
             if ($weekEnd > $monthEnd) {
                 $weekEnd = $monthEnd;
             }