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

Selected date is off by one month #85

Closed
ianyamey opened this issue Jul 2, 2018 · 9 comments
Closed

Selected date is off by one month #85

ianyamey opened this issue Jul 2, 2018 · 9 comments

Comments

@ianyamey
Copy link

ianyamey commented Jul 2, 2018

When selecting a date, the value of the input field is incorrect by one month (it shows the month before the chosen date)

Steps to reproduce

  1. Visit https://wikiki.github.io/components/calendar/#javascript
  2. Click on the datepicker input
  3. Choose July 2, 2018
  4. Observe the value of the input field

Expected behavior: Input has value 2018-07-02
Observed behavior: Input has value 2018-06-02

@Wikiki
Copy link
Owner

Wikiki commented Jul 2, 2018

Hi, this issue is solved with the last version. Documentation is not up to date. I'll update it soon

@Wikiki Wikiki closed this as completed Jul 2, 2018
@ianyamey
Copy link
Author

ianyamey commented Jul 2, 2018 via email

@Wikiki
Copy link
Owner

Wikiki commented Jul 2, 2018

Hi,

documentation is now updated with the last release and it's working fine.
Be careful to the date format you declare (see moment.js documentation to check supported formats)

@MrMonotone
Copy link

I better mention it here as well. I still experience the same problem.

I am pulling the calendar in through :
import { bulmaCalendar, bulmaAccordion } from "../node_modules/bulma-extensions/dist/js/bulma-extensions.js";

@Wikiki
Copy link
Owner

Wikiki commented Jul 31, 2018

Hi @MrMonotone, can you please try using this repo instead?

@mokhosh
Copy link

mokhosh commented Aug 27, 2018

I'm still experiencing this problem. I did npm update and rebuilt my js files, shouldn't that fix it?

@Wikiki
Copy link
Owner

Wikiki commented Aug 28, 2018

Hi,

npm is not up to date. I'll update it tomorrow

@mokhosh
Copy link

mokhosh commented Sep 1, 2018

Did you get a chance to update npm? I just updated again and it's still off by one month.

@Wikiki
Copy link
Owner

Wikiki commented Sep 1, 2018

Hi,

I'll do it tonight.

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

No branches or pull requests

4 participants