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.
2 parents 1b52c5f + 81c459c commit 022fb27Copy full SHA for 022fb27
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