Merge branch 'spidev' into 'master'

Zeiterfassung

See merge request fronk/thetool!851
This commit is contained in:
Daniel Spitzer
2024-12-30 07:49:24 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ ksort($timerecordingUsers);
for ($i = 1; $i <= 25; $i++) {
$kw = date('W', $time);
$year = date('Y', $time);
$year = date('o', $time);
$timestamp_montag = strtotime("{$year}-W{$kw}");
$timestamp_freitag = strtotime("{$year}-W{$kw}-7");

View File

@@ -101,7 +101,7 @@ class TimerecordingReportController extends mfBaseController
if ($datatype == 1) {
$kw = date('W', $dataweek);
$year = date('Y', $dataweek);
$year = date('o', $dataweek);
$timestamp_montag = strtotime("{$year}-W{$kw}");
$timestamp_sonntag = strtotime("{$year}-W{$kw}-7");
$firstdate = strtotime(date("Y-m-d", $timestamp_montag) . " 00:00:00");
@@ -562,7 +562,7 @@ class TimerecordingReportController extends mfBaseController
if ($datatype == 1) {
$kw = date('W', $dataweek);
$year = date('Y', $dataweek);
$year = date(o, $dataweek);
$timestamp_montag = strtotime("{$year}-W{$kw}");
$timestamp_sonntag = strtotime("{$year}-W{$kw}-7");
$firstdate = strtotime(date("Y-m-d", $timestamp_montag) . " 00:00:00");