Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeekPicker show previous week of selected if timezone is not the navigator timezone #1058

Open
throrin19 opened this issue Dec 13, 2024 · 0 comments
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working

Comments

@throrin19
Copy link

throrin19 commented Dec 13, 2024

Describe the bug
If I manipulate weekPicker and pass a date in UTC format for specific timezone, and this timezone has difference with current timezone in future, then vueDatePicker select previous week and not current passed :

Start Date End Date Passed Timezone Default Timezone Status
2024-12-08T22:00:00.000Z 2024-12-16T21:59:59.999Z Europe/Helsinki Europe/Paris 🔴
2024-12-08T23:00:00.000Z 2024-12-16T22:59:59.999Z Europe/Paris Europe/Paris 🟢

Note : It works fine with others pickers

To Reproduce
Steps to reproduce the behavior:

  1. Have your nabigator and system in a specific timezone (like Europe/Paris)
  2. Choose a timezone hours ahead of your own (like Europe/Helsinki) and set it to the VueDatePicker
  3. Set mode to week-picker
  4. Select a week
  5. VueDatePicker select previous week but return correct week date

Expected behavior

VueDatePicker select and return correct week date

Screenshots

As you can see in my datePicker if I try to select a specific week in the case Timezone not same as navigator :

Kapture 2024-12-13 at 15 20 46

Desktop & mobile (please complete the following information):

  • Browser chrome
  • Library version 10.0.0
@throrin19 throrin19 added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant