Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: TT-328 standarize entry-miliseconds to 0
  • Loading branch information
bytesantiago committed Sep 3, 2021
commit 60556bb4b38b42483a52cf0a997c65cd1656bf88
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ describe('TimeEntriesComponent', () => {
const defaultSeconds = 0;
const currentDate = new Date();
currentDate.setSeconds(defaultSeconds);
currentDate.setMilliseconds(defaultSeconds);
const emptyDate = new Date(new Date().setHours(0, 0, 0, 0));
const lastEntry = {
description: 'testing is fun',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
const defaultSeconds = 0;
const currentDate = new Date();
currentDate.setSeconds(defaultSeconds);
currentDate.setMilliseconds(defaultSeconds);
const emptyDate = new Date(new Date().setHours(0, 0, 0, 0));
const entry = {
description: dataToUse.description ? dataToUse.description : '',
Expand Down