You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
There is no sync between the date selected in the datepicker and the date displayed in the i nput field. Also, on first opening the datepicker, it should ideally show the current/ present date already selected but it shows a different month, date, year.
Note: This behaviour is noticed when the timezone in the machine is default (set to IST=> UTC: 5:30). If timezone is changed to EST, datepicker works fine.
To Reproduce
Steps to reproduce the behavior:
Set system timezone to IST
Open datepicker. The Month and year on top of the datepicker wont be the current ones.
Select any date in datepicker, check the input field. Dates will be different.
Expected behavior
Datepicker must work the same, irrespective of the locales/ timezones/ OS language, etc.
@grahamhency changing all timeZone values from utc to Intl.DateTimeFormat().resolvedOptions().timeZone in projects/go-lib/src/lib/components/go-datepicker/date-adapter.ts would fix this issue.
Not sure what implications this would have on the behavior of the date picker itself which is why I posted findings here so we can discuss it. Dealing with time gives me too much of a headache 😃
Description
There is no sync between the date selected in the datepicker and the date displayed in the i nput field. Also, on first opening the datepicker, it should ideally show the current/ present date already selected but it shows a different month, date, year.
Note: This behaviour is noticed when the timezone in the machine is default (set to IST=> UTC: 5:30). If timezone is changed to EST, datepicker works fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Datepicker must work the same, irrespective of the locales/ timezones/ OS language, etc.
Screenshots
For further details, please access the screencast at this link: https://tangoe-my.sharepoint.com/:v:/p/ashish_goyal/Ef3jHXFyGFtLgNES10HEV-sBIN05ToCAmopt_0Zv45EhZQ?e=eVhSnb
The text was updated successfully, but these errors were encountered: