Skip to content

Commit 0726014

Browse files
authored
Merge pull request #331 from ioet/330-automated-clock-outs-are-using-UTC
fix: #330 use midnight for clock-out taking into account time-zone
2 parents cc9a343 + ec1788b commit 0726014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/time-clock/store/entry.effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class EntryEffects {
4545
} else {
4646
const endDate = activeEntry.start_date;
4747
endDate.setHours(23, 59, 59);
48-
activeEntry.end_date = new Date(endDate.toISOString());
48+
activeEntry.end_date = endDate.toISOString();
4949
return new actions.UpdateActiveEntry(activeEntry);
5050
}
5151
}

0 commit comments

Comments
 (0)