NASER fix update attendace duration and horizontal scroll for months

This commit is contained in:
moTech
2026-04-21 05:56:01 +00:00
parent 4b2e1e296a
commit f7537a8b0d
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -290,9 +290,10 @@ class AdminController extends Controller
$breakSec = strtotime("1970-01-01 " . $break) - strtotime("1970-01-01 00:00:00");
$durationSec = strtotime("1970-01-01 " . $duration) - strtotime("1970-01-01 00:00:00");
$durationSec -= $breakSec;
$record->duration = gmdate("H:i:s", $durationSec);
$duration = gmdate("H:i:s", $durationSec);
}
$record->duration = $duration ?? $record->duration;
//dd($record->duration, $duration, $break);
$record->requested = '';
$record->save();