nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.32k stars 840 forks source link

Timezone doesn't apply when reopen the popup after selected a datetime #1438

Open slaiEscribe opened 5 months ago

slaiEscribe commented 5 months ago

I set the timezone to "America/Toronto" under the v-calendar component. When the first time open up the datepicker and select a datetime, the timezone applied: image

Once, you close the calendar popup and click on the input to re-open the calendar popup. You will find the time under the calendar is incorrect. It shows the UTC time instead of the time that applied timezone: image

This also happen when you pre-set the datetime and open up the calendar and timezone didn't apply under the calendar time: image