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

disable dates don't obey utc preserve #560

Closed
morteza-mortezai opened this issue Sep 7, 2023 · 4 comments
Closed

disable dates don't obey utc preserve #560

morteza-mortezai opened this issue Sep 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@morteza-mortezai
Copy link

Hi
when utc is set to preserve
and you set disabled dates like this ['2023-09-08']
then it display wrong disabled dates .
it seems it doesn't consider utc preserve

@morteza-mortezai morteza-mortezai added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Sep 7, 2023
@Jasenkoo
Copy link
Contributor

Jasenkoo commented Sep 8, 2023

Looks like the correct date is displayed

Screenshot 2023-09-08 213219

@Jasenkoo Jasenkoo closed this as completed Sep 8, 2023
@Jasenkoo Jasenkoo added wontfix This will not be worked on and removed bug Something isn't working awaiting triage The issue is not reviewed by the maintainers labels Sep 8, 2023
@morteza-mortezai
Copy link
Author

But if you change your system time zone to positive and negative UTC zones , you will see it display different disabled dates

@morteza-mortezai
Copy link
Author

<VueDatePicker utc='preserve' :format="format" :model-value="form.plan_start_date" :disabled-dates="closedDates" @update:model-value="onStartDateChange" :enable-time-picker="false" model-type="format" />

image
when OS time zone is set to Iran

image
and when OS time zone is set to Vancouver/Canada
As you can see they it displays different disabled dates while UTC is preserve

@Jasenkoo
Copy link
Contributor

Jasenkoo commented Sep 8, 2023

Yes, I see, can you please provide me a list value for closedDates so I can check

@Jasenkoo Jasenkoo reopened this Sep 8, 2023
@Jasenkoo Jasenkoo added bug Something isn't working and removed wontfix This will not be worked on labels Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants