Skip to content
Snippets Groups Projects
Commit 81a3f566 authored by Nicolas Lempereur's avatar Nicolas Lempereur Committed by Olivier Dony
Browse files

[FIX] stock,event,pos: fix "today" filter with regard to timezones

The previous filters didn't take timezones into account, and
returned stringified naive datetime values in local browser
time. Those would then be interpreted by the server-side as
UTC date, and depending on the current timezone offset vs UTC,
yield partially incorrect results.

By returning directly a datetime.datetime object instead of
a stringified version (see previous commit 76881fb2),
we can get the expected result regarless of the timezone.

Fixes #2972
Closes #6229

opw-621282
parent 76881fb2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment