Vuepic / vue-datepicker

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

"Now" button return localhost time when choose timezone="XXX" #874

Closed mjnamjkaze closed 4 months ago

mjnamjkaze commented 4 months ago

Describe the bug when control put timezone="XXX", all work except time not correct, it binds local time

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Bottom'
  2. Click on 'Now'
  3. See error: it shows local time instead of timezone chosen time link stackblitz: https://stackblitz.com/edit/vuepic-vue-datepicker-gsxbgq?file=src%2Fcomponents%2FPlayground.vue

Expected behavior need to show date time of timezone settings, like default popup, click on current day

Screenshots image

Desktop & mobile (please complete the following information):