zhangxiaobin преди 1 година
родител
ревизия
74e7557285
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      application/common.php

+ 2 - 2
application/common.php

@@ -732,8 +732,8 @@ if (!function_exists('week_now')) {
     function week_now()
     {
         $arr = [
-            strtotime(date('Y-m-d', strtotime("-1 week Monday", time()))),
-            strtotime(date('Y-m-d', strtotime("+0 week Sunday", time()))) - 1
+            strtotime(date('Y-m-d', strtotime("+0 week Monday", time()))),
+            strtotime(date('Y-m-d', strtotime("+0 week Sunday", time())))
         ];
 
         return $arr;