JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.55k stars 2.48k forks source link

Date field truncates information #8754

Open m-haug opened 2 years ago

m-haug commented 2 years ago

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

Steps to reproduce the behaviour

  1. Create a new entry in the library
  2. Edit the date field to be a valid ISO timestamp including a time component (e.g., 2022-02-23T17:43:16)
  3. 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

LIM0000 commented 2 years ago

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.

calixtus commented 2 years ago

To make this issue a lot more annoying: Try to paste the timestamp a second time, after it gets truncated... Argh.... 😕

ThiloteE commented 2 years ago

For context: This here is a sub-issue of #2753.