소스 검색

changes from the server

root 4 년 전
부모
커밋
ab347052b1
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/Http/Controllers/HomeController.php

+ 3 - 3
app/Http/Controllers/HomeController.php

@@ -596,11 +596,11 @@ WHERE measurement.label NOT IN ('SBP', 'DBP')
             $startDate = date_sub(date_create(), date_interval_create_from_date_string("1 month"));
             $startDate = date_format($startDate, "Y-m-d");
             $patientAcquisitionData = DB::select(DB::raw(
-                "SELECT count(id) as count, DATE(created_at) as date " .
+                "SELECT count(id) as count, DATE(created_at at time zone 'utc' at time zone 'est') as date " .
                 "FROM client " .
                 "WHERE shadow_pro_id IS NULL " .
-                "GROUP BY DATE(created_at) " .
-                "ORDER BY DATE(created_at) DESC " .
+                "GROUP BY DATE(created_at at time zone 'utc' at time zone 'est') " .
+                "ORDER BY DATE(created_at at time zone 'utc' at time zone 'est') DESC " .
                 "LIMIT 30"));
         }