JabRef / jabref

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

Adding optional time format for timestamp field #10018

Open ehehela opened 1 year ago

ehehela commented 1 year ago

Here is a suggestion to add an optional time format for timestamp field. The default timestamp format is "yyyy-MM-ddTHH:mm:ss". But date like "yyyy-MM-dd" is enough for me. So I think it would be better if we can provide multiple time formats for these fields (see figure below for example). 屏幕截图 2023-06-18 232724

I have tried to use "normalize date" for "modificationdate" field when saving, but it got stuck into loop. Once the normalization action is triggered, a new time "yyyy-MM-ddTHH:mm:ss" is filled into "modificationdate" field.

koppor commented 1 year ago

Why is this marked as completed? I think, this is a nice feature.

Did you close it, because other tools write the full timestamp there? I am not sure if JabRef can derivate here, because your proposals describes:

ehehela commented 1 year ago

@koppor Thanks for your attention and reply. Now I use field timestamp to manually mark reading date instead of modificationdate. timestamp works well except that I have to manually add date. Save actions like normalizing date can also work on this field.

According to the principle that "entities must not be multiplied beyond necessity", I think the issue can be canceled or in low priority.

ehehela commented 1 year ago

Saving actions such as normalize date on modificationdate should be excluded or prohibited since it may cause endless loop.