Skip to content

Commit bd32cf2

Browse files
kevinjlopeSandro Castillo
authored andcommitted
fix: TT-258 modificate atribute star_date to view time in
1 parent 61a7a35 commit bd32cf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/modules/time-entries/pages/time-entries.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ describe('TimeEntriesComponent', () => {
381381
uri: 'http://testing.is.fun',
382382
activity_id: 'sss',
383383
project_id: 'id',
384-
start_date: new Date(new Date().setHours(0, 0, 0, 0)),
384+
start_date: new Date(),
385385
end_date: new Date(new Date().setHours(0, 0, 0, 0))
386386
};
387387
state.timeEntriesDataSource.data = [lastEntry];

src/app/modules/time-entries/pages/time-entries.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
129129
uri: dataToUse.uri ? dataToUse.uri : '',
130130
activity_id: dataToUse.activity_id,
131131
project_id: dataToUse.project_id,
132-
start_date: startDate,
132+
start_date: new Date(),
133133
end_date: startDate
134134
};
135135
this.entry = entry;

0 commit comments

Comments
 (0)