Timezone issue in operations search
Hi,
In the operations search form, we can select a minimum and maximum date to filter the list of operations. It seems there is a timezone issue there.
STR
- Have your server live in a given timezone. Have your client live in another timezone (say UTC-5).
- Select a minimal date DD/MM/YYYY to filter operations, maximal date picker will eventually let you select (DD-1)/MM/YYYY, which upon selection will reset the minimal date picker.
- Select DD/MM/YYYY as start date and DD/MM/YYYY as end date, it will eventually show no operations although the operation list does show operations for day DD/MM/YYYY.
Solution
I think the sane way to handle it is to always handle UTC dates on the server side. Timezone rendering should be made in the client code, so that any date shown in the UI is in the local timezone.