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-258 modificate atribute star_date to view time in
  • Loading branch information
kevinjlope committed Jun 16, 2021
commit 215ab4ac65d044f3751fc1dba549386fdefeb99f
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ describe('TimeEntriesComponent', () => {
uri: 'http://testing.is.fun',
activity_id: 'sss',
project_id: 'id',
start_date: new Date(new Date().setHours(0, 0, 0, 0)),
start_date: new Date(),
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 @@ -129,7 +129,7 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
uri: dataToUse.uri ? dataToUse.uri : '',
activity_id: dataToUse.activity_id,
project_id: dataToUse.project_id,
start_date: startDate,
start_date: new Date(),
end_date: startDate
Copy link
Contributor

@jase156 jase156 Jun 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should change constant's the name of the startDate to endDate for better readability.

};
this.entry = entry;
Expand Down