jungsoft/materialui-daterange-picker

Timezones date range bugs

Opened this issue · 0 comments

We used this daterange picker in our app. There is a bug if you change your time zone to some ohter where there is already "tomorrow" (f.e. UTC+14) or still "yesterday" (f.e. UTC-12). If you select some date range (f.e. this/last week or month) one more day then needed is selected (f.e. last week selects 8 days instead of 7 and so on). Check the images:

timezone -8 last week
timezone -8 this month