We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6a3c8 commit 81c459cCopy full SHA for 81c459c
src/app/modules/time-clock/store/entry.effects.ts
@@ -19,7 +19,7 @@ export class EntryEffects {
19
switchMap((action: actions.SwitchTimeEntry) =>
20
this.entryService.stopEntryRunning(action.idEntrySwitching).pipe(
21
map((response) => {
22
- const stopDateForEntry = new Date(response.end_time);
+ const stopDateForEntry = new Date(response.end_date);
23
stopDateForEntry.setSeconds(stopDateForEntry.getSeconds() + 1 );
24
return new actions.CreateEntry({ project_id: action.idProjectSwitching, start_date: stopDateForEntry.toISOString() });
25
}),
0 commit comments