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

Wrong time displayed with selectedDates #510

Closed
pvictor opened this issue Dec 7, 2022 · 1 comment
Closed

Wrong time displayed with selectedDates #510

pvictor opened this issue Dec 7, 2022 · 1 comment
Labels

Comments

@pvictor
Copy link

pvictor commented Dec 7, 2022

Displayed time is AM but selectedDates provided is PM

image

Here code to reproduce :

import AirDatepicker from "air-datepicker";
import en from "air-datepicker/locale/en";
import "air-datepicker/air-datepicker.css";

let options = {
  locale: en,
  selectedDates: [new Date("2022-12-07 16:00:00")],
  timepicker: true
};

let dp = new AirDatepicker("#dp", options);

Tested with version 3.3.1

Link to sanbox : https://codesandbox.io/s/vigilant-kilby-t77k4e

@t1m0n t1m0n added the bug label Dec 8, 2022
@t1m0n t1m0n closed this as completed in 6cbe15f Dec 8, 2022
@t1m0n
Copy link
Owner

t1m0n commented Dec 8, 2022

Thanks for the bug report!

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

No branches or pull requests

2 participants