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

Datepicker component display bad date when selected a date #851

Open
jojolasticot opened this issue Sep 1, 2021 · 2 comments
Open

Datepicker component display bad date when selected a date #851

jojolasticot opened this issue Sep 1, 2021 · 2 comments

Comments

@jojolasticot
Copy link

Hi all,

I've got a problem with vuejs-datepicker.

I use it like that in my Vue.js app :

<datepicker placeholder="Choisissez une date" :language="fr" v-on:selected="selectDay" :disabledDates="disabledFn">
</datepicker>

import {fr} from 'vuejs-datepicker/dist/locale'

When I select a date, for example September 1st :

capt1

This is a next day which look selected (September 2) :
capt2
capt3

When a get the date in my function v-on:selected="selectDay", I get the correct selected date. So the problem is only in the displayer.

Any idea ?

Thanking you,

Jonathan

@beckybair
Copy link

I'm seeing similar but instead of the next day, it is the day before:
I choose Oct 9th and it records it correctly back to my other component that calls it but it displays Oct 8th and Datepicker says the selectedDate is also the 8th, not the 9th like it should be.

@nt-chinbat
Copy link

same here. when I select a date it selects previous day. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants