question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Time JFXDatePicker

See original GitHub issue

Hello,

The JFXDatePicker, when chosen with the time option does not correctly parse the selected time. In fact, the following error occurs:

Exception in thread "JavaFX Application Thread" java.time.format.DateTimeParseException: Text '2:17 AM' could not be parsed, unparsed text found at index 4

I have tried it both in my own application and in the demo.

Any suggestions ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Quentamecommented, May 9, 2016

Hello,

This bug exists from months ago. It is triggered when JFoenix is not used with a non English like locale, so the LocalTimeStringConverter crash.

To solve it, you just needs to precise in the LocalTimeStringConverter constructor : Locale.ENGLISH

I don’t know how to make a pull request when it’s not my project, but I’ll try a bit later.

Also that might be cool to internationalize the TimePicker. It looks like this in French, and obviously in Spanish too: timepicker24h

Thanks.

0reactions
GNorbicommented, Feb 4, 2017

Please someone tell me how to fix it. THX!! I cant edit the constructor becouse i use jfoenix.jar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Time JFXDatePicker · Issue #98 · sshahine/JFoenix - GitHub
Hello,. The JFXDatePicker, when chosen with the time option does not correctly parse the selected time. In fact, the following error occurs:.
Read more >
JFXDatePicker (jfoenix 1.9.0 API) - javadoc.io
JFXDatePicker. All Implemented Interfaces: javafx.css. ... public class JFXDatePicker extends javafx.scene.control.DatePicker ... JFXDatePicker(java.time.
Read more >
26 Date Picker (Release 8)
The basic package of the Date-Time API is java.time . It provides the following ... LocalDate – a date without a time-zone in...
Read more >
css - JFXDatePicker change style of current date
or ask your own question. The Overflow Blog. How to make time for learning in tech. sponsored post.
Read more >
com.jfoenix.controls.JFXDatePicker Java Examples
getChildren().add(datePicker); JFXDatePicker datePickerFX = new JFXDatePicker(); ... Creates the earth time bar */ public void createEarthTimeBar() { if ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found