Silent 6 anos atrás
pai
commit
d99f1a65d7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Models/Student.php

+ 1 - 1
app/Models/Student.php

@@ -141,6 +141,6 @@ class Student extends Model
             $duration = strtotime($item->end_date_time) - strtotime($item->begin_date_time);
             $duration = strtotime($item->end_date_time) - strtotime($item->begin_date_time);
             $total += $duration;
             $total += $duration;
         }
         }
-        return $total / 60;
+        return floor($total / 60);
     }
     }
 }
 }