Skip to content

Commit 0ad0926

Browse files
committed
[Web] Fix range selections on various date pickers
1 parent 10152d9 commit 0ad0926

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

attendance-web/src/app/components/meeting-events/meeting-events.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export class MeetingEventsComponent implements OnInit {
2929
eventColumns = ["eventId", "registrar", "eventType", "eventDate"];
3030

3131
meetingEventListOptions: FormGroup = new FormGroup({
32-
since: new FormControl(DateTime.now().minus({months: 1})),
33-
until: new FormControl(DateTime.now())
32+
since: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}).minus({months: 1})),
33+
until: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}))
3434
});
3535

3636
loadingEvents = true;

attendance-web/src/app/components/reports/csv-export/csv-export.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import { UsersService } from 'src/app/services/users.service';
1717
export class CsvExportComponent implements OnInit {
1818

1919
exportOptions: FormGroup = new FormGroup({
20-
since: new FormControl(DateTime.now().minus({months: 6})),
21-
until: new FormControl(DateTime.now())
20+
since: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}).minus({months: 6})),
21+
until: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}))
2222
});
2323

2424
constructor(

attendance-web/src/app/components/reports/event-log/event-log.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export class EventLogComponent implements OnInit {
4949
stateType = PageState;
5050

5151
listOptions: FormGroup = new FormGroup({
52-
since: new FormControl(DateTime.now().minus({months: 1})),
53-
until: new FormControl(DateTime.now())
52+
since: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}).minus({months: 1})),
53+
until: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}))
5454
});
5555

5656
showActions = new ReplaySubject<boolean>(1);

attendance-web/src/app/components/reports/meetings-report/meetings-report.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export class MeetingsReportComponent {
2727
stateType = PageState
2828

2929
dataDateRange: FormGroup = new FormGroup({
30-
since: new FormControl(DateTime.now().minus({months: 1})),
31-
until: new FormControl(DateTime.now())
30+
since: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}).minus({months: 1})),
31+
until: new FormControl(DateTime.now().set({hour: 0, minute: 0, second: 0, millisecond: 0}))
3232
});
3333

3434
selectedInterval = new ReplaySubject<Interval>(1);

0 commit comments

Comments
 (0)