Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.43k stars 142 forks source link

Months are computed wrongly when using format-locale in a non-UTC timezone #816

Closed brunolopesr-dft closed 5 months ago

brunolopesr-dft commented 5 months ago

Describe the bug When using the prop format-locale with a browser using a timezone different from UTC, the months of a year are computed wrong, from December to November.

To Reproduce Set your browser timezone to a value different from UTC or +00:00, then use a date-fns locale as a value of the prop format-locale

Codesandbox: https://codesandbox.io/p/devbox/prod-glitter-lm5nsv

Expected behavior The months should be in the correct order from January to December

Screenshots image

Desktop & mobile (please complete the following information):