zengjun 4 years ago
parent
commit
34af546439
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/ReceivingTaskService.php

+ 1 - 1
app/Services/ReceivingTaskService.php

@@ -123,7 +123,7 @@ class ReceivingTaskService
      */
     public function overtimeToCompleteTask()
     {
-        $yesterday = Carbon::now()->subDays(1)->format("Ym--d");
+        $yesterday = Carbon::now()->subDays(1)->format("Y-m-d");
         ReceivingTask::query()
             ->where('created_at', '>=', $yesterday . ' 00:00:00')
             ->where('created_at', '<=', $yesterday . ' 23:59:59')