I am having trouble with loading a dateTime filter from localStorage.
What I have observed is that when I send a request to the server with a Date picked from the DatePicker the request looks as follows:
filter: DateTS~eq~datetime'2024-07-09T00-00-00'
However when sent with a Date loaded from localStorage it looks as follows:
filter: DateTS~eq~'2024-07-09T04:00:00.000Z'
My localStorage variable is just the filter object and looks as follows:
{
"filters": [
{
"operator": "eq",
"value": "2024-07-09T04:00:00.000Z",
"field": "DateTS"
}
],
"logic": "and"
}
looking for the best way to translate datetime fields so that the request is sent to the api properly when loading from localStorage.