jabref
jabref copied to clipboard
Date field truncates information
JabRef version
5.6 (latest release)
Operating system
macOS
Details on version and operating system
macOS Monterey Version 12.4 Beta
Checked with the latest development build
- [X] I made a backup of my libraries before testing the latest development version.
- [X] I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
- Create a new entry in the library
- Edit the date field to be a valid ISO timestamp including a time component (e.g.,
2022-02-23T17:43:16
) - Click into another field
When the focus changes in step 3, the date field is truncated to just the date part.
If the time component does not include seconds, #8747 is triggered instead, but the information is not truncated.
Appendix
No response
For this issue, I have found that DatePicker.setConverter only allow StringConverter<LocalDate>
as parameter.
This means that TIME information is not storing into LocalDate
object and causes TIME data loss.
Should user allow to store time information in date field?
I believe that DatePicker
only accept information such as Year, Month and Day.
To make this issue a lot more annoying: Try to paste the timestamp a second time, after it gets truncated... Argh.... 😕
For context: This here is a sub-issue of #2753.