Skip to content

Commit

Permalink
Merge pull request #654 from mahajanmahesh935/category
Browse files Browse the repository at this point in the history
Bug #227764 : Date filter is not working on poll list page
  • Loading branch information
paritshivani authored Sep 26, 2024
2 parents 87b9279 + d09b084 commit 09ae84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nulp_elite/src/pages/voting/votingList.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ const VotingList = () => {
const formattedFilters = {
...newFilters,
selectedStartDate: newFilters.selectedStartDate
? dayjs(newFilters.selectedStartDate).format("YYYY-MM-DD")
? dayjs(newFilters.selectedStartDate).set('hour', 0).set('minute', 0).set('second', 0).set('millisecond', 0).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]")
: null,
selectedEndDate: newFilters.selectedEndDate
? dayjs(newFilters.selectedEndDate).format("YYYY-MM-DD")
? dayjs(newFilters.selectedEndDate).set('hour', 18).set('minute', 30).set('second', 0).set('millisecond', 0).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]")
: null,
};
setFilters(formattedFilters);
Expand Down

0 comments on commit 09ae84e

Please sign in to comment.