Skip to content

Commit

Permalink
fix: use iso string for date filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-k-osmosys committed Dec 5, 2024
1 parent f3ff22f commit a234a26
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ export class NotificationsComponent implements OnInit {
field: 'createdOn',
operator: 'gt',
value: new Date(
new Date(this.selectedFromDate).setTime(this.selectedFromDate.getTime() - 1000),
).toString(),
new Date(this.selectedFromDate).setDate(this.selectedFromDate.getDate()),
).toISOString(),
});
}

Expand All @@ -303,7 +303,7 @@ export class NotificationsComponent implements OnInit {
field: 'createdOn',
operator: 'lt',
value: new Date(
new Date(this.selectedToDate).setDate(this.selectedToDate.getDate() + 1),
new Date(this.selectedToDate).setDate(this.selectedToDate.getDate()),
).toISOString(),
});
}
Expand Down

0 comments on commit a234a26

Please sign in to comment.