You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using dateFormat in combination with defaultHour, the initial display may be incorrect.
I set a 12-hour time format (i.e. 3:00 PM). I then set the defaultHour to 15. This displays 15:00 PM in the time picker by default. If you use the arrows to increment the hours, the problem is corrected (i.e. pressing the up arrow takes you from 15 to 4). Ideally, it would display 3:00 PM in the time picker in the first place.
The fix almost works. It seems that it's messed up if defaultHour is either 12 or 24 now. Both of those set the default time to 00:00 PM, instead of 12:00 PM and 12:00 AM. Would you prefer a new issue be opened for this?
I am still seeing the parsing issue mentioned above with version 3.0.7 of flatpickr which I thought was supposed to include the fix. If either 12 or 24 is passed in for the default hour then I get a default time of 00:00 PM, instead of 12:00 PM and 12:00 AM.
Details
When using dateFormat in combination with defaultHour, the initial display may be incorrect.
I set a 12-hour time format (i.e. 3:00 PM). I then set the defaultHour to 15. This displays 15:00 PM in the time picker by default. If you use the arrows to increment the hours, the problem is corrected (i.e. pressing the up arrow takes you from 15 to 4). Ideally, it would display 3:00 PM in the time picker in the first place.
Reproduction Link
https://jsfiddle.net/aj6k3f1v/51/
Your Environment
The text was updated successfully, but these errors were encountered: