|
this.s.value[i] = moment(this.s.value[i], this.s.dateFormat).toISOString(); |
This line is causing me a headache. This converts the date to an ISO string ex. "2022-01-16T09:00:00.000Z"
The next time you make a request to the server it tries to create a moment date using that ISO string along with your custom formatter. This results in an invalid date because the custom format doesn't line up with that date.
SearchBuilder/src/criteria.ts
Line 2044 in 2a3ceb3
This line is causing me a headache. This converts the date to an ISO string ex. "2022-01-16T09:00:00.000Z"
The next time you make a request to the server it tries to create a moment date using that ISO string along with your custom formatter. This results in an invalid date because the custom format doesn't line up with that date.