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
Next Next commit
fix: TT-328 when editing/creating entries set seconds to 0
  • Loading branch information
bytesantiago committed Sep 1, 2021
commit 8029eceeb4bd2775203ee9cd789464eb86d56994
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ describe('TimeEntriesComponent', () => {
uri: 'http://testing.is.fun',
activity_id: 'sss',
project_id: 'id',
start_date: new Date(),
start_date: new Date(new Date().setSeconds(0)),
end_date: new Date(new Date().setHours(0, 0, 0, 0))
};
state.timeEntriesDataSource.data = [lastEntry];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
uri: dataToUse.uri ? dataToUse.uri : '',
activity_id: dataToUse.activity_id,
project_id: dataToUse.project_id,
start_date: new Date(),
start_date: new Date(new Date().setSeconds(0)),
end_date: startDate
};
this.entry = entry;
Expand Down