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
I'm in Europe / Denmark. I set the select option on the datepicker with new Date(2020-06-20).
console.log shows: Sat Jun 20 2020 02:00:00 GMT+0200 (Central European Summer Time)
I get the correct date selected.
I change my browser timezone to Chicago. Send the same date. My console.log is looks the same. But the date picker selects 2020-06-19.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I get a date from the backend 2020-06-20.
I'm in Europe / Denmark. I set the select option on the datepicker with new Date(2020-06-20).
console.log shows: Sat Jun 20 2020 02:00:00 GMT+0200 (Central European Summer Time)
I get the correct date selected.
I change my browser timezone to Chicago. Send the same date. My console.log is looks the same. But the date picker selects 2020-06-19.
How do i fix this?
This code also has the error:
Beta Was this translation helpful? Give feedback.
All reactions