jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Date field truncates information

Open m-haug opened this issue 2 years ago • 3 comments

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

  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

m-haug avatar May 04 '22 08:05 m-haug

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.

LIM0000 avatar May 07 '22 04:05 LIM0000

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

calixtus avatar May 17 '22 08:05 calixtus

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

ThiloteE avatar Jun 17 '22 10:06 ThiloteE