fix: select correct worktime for given day

This commit is contained in:
Marcel Arndt 2025-07-01 14:20:21 +02:00
parent 79da91df00
commit 8ec8d481b8
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export class AnomalyDetectorService {
day: Date,
): Promise<WorkTime | undefined> {
let startOfGivenDay: Date;
if (day.getHours() >= 0 && day.getHours() < 3) {
if (day.getHours() >= 0 && day.getHours() < 2) {
startOfGivenDay = addDays(day, -1);
} else {
startOfGivenDay = startOfDay(day);