Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: #330 use midnight for clock-out taking into account time-zone
  • Loading branch information
enriquezrene committed Jun 2, 2020
commit ec1788b60f920258018779419d34455d64ebd5e4
2 changes: 1 addition & 1 deletion src/app/modules/time-clock/store/entry.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class EntryEffects {
} else {
const endDate = activeEntry.start_date;
endDate.setHours(23, 59, 59);
activeEntry.end_date = new Date(endDate.toISOString());
activeEntry.end_date = endDate.toISOString();
return new actions.UpdateActiveEntry(activeEntry);
}
}
Expand Down