Korrigiere das Parsen von Datumsangaben, um zukünftige Kalendertage zu vermeiden
All checks were successful
Deploy production / deploy (push) Successful in 36s
All checks were successful
Deploy production / deploy (push) Successful in 36s
This commit is contained in:
@@ -750,7 +750,10 @@ class TimeEntryService {
|
|||||||
let nonWorkingMinutes = 0;
|
let nonWorkingMinutes = 0;
|
||||||
|
|
||||||
weekData.days.forEach(day => {
|
weekData.days.forEach(day => {
|
||||||
const dayDate = new Date(day.date);
|
// Datum lokal parsen. new Date('YYYY-MM-DD') verwendet UTC und würde
|
||||||
|
// den heutigen Kalendertag nach Mitternacht als zukünftigen Zeitpunkt
|
||||||
|
// behandeln.
|
||||||
|
const dayDate = new Date(day.date + 'T00:00:00');
|
||||||
|
|
||||||
// Nur Tage bis heute berücksichtigen
|
// Nur Tage bis heute berücksichtigen
|
||||||
if (dayDate > todayDate) {
|
if (dayDate > todayDate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user