Bugfix PHP8 Zeiterfassung

This commit is contained in:
Daniel Spitzer
2026-01-21 20:43:23 +01:00
parent 6584985e03
commit 1add43f24f

View File

@@ -284,7 +284,7 @@ class TimerecordingEmployeeController extends mfBaseController
foreach ($TimerecordingEmployeeWorkingHourHistory as $key => $value) {
$workinghours = json_decode($value->workinghours, true);
$datetimetext = "";
$secondcounter = "";
$secondcounter = 0;
foreach ($workinghours as $key2 => $data) {
$secondcounter = $secondcounter + strtotime(date("Y-m-d " . $data['end'] . ":00")) - strtotime(date("Y-m-d " . $data['start'] . ":00"));
$datetimetext .= $days_short[$data['day']] . " " . $data['start'] . " - " . $data['end'] . "<br>";