Zeiterfassung
Bugfix: * PHP Date statt Y o genommen damit die Kalenderwoche sich auf das richtige Jahr bezieht (nun auch für Reports)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user