Skip to content

Add date fields#7334

Merged
koppor merged 34 commits intomasterfrom
add-date-fields
Jan 14, 2021
Merged

Add date fields#7334
koppor merged 34 commits intomasterfrom
add-date-fields

Conversation

@DominikVoigt
Copy link
Copy Markdown
Contributor

This PR introduces the creationdate and modificationdate fields. Refs koppor#130.
It provides migration to these new fields from the timestamp field.
If the old "Update timestamp on modification" option is active, the timestamp will be migrated to the modification field. Otherwise, it will be migrated to the creationdate field.
This migration also ports many of the most used date formats to the ISO8601 standard.
An example of this: 2020-03-17T12:28:32 (yyyy-mm-ddThh:mm:ss).
The time portion of these migrated entries is set to 00:00:00.

The automatic creation/updating of both fields can be configured in the preferences dialog at the same place the previous function could be configured.
For the time portion, the locale time is used and truncated to the precision of seconds.

image

  • Change in CHANGELOG.md described (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not created an issue at https://github.com/JabRef/user-documentation/issues or, even better, submitted a pull request to the documentation repository.

Comment thread src/main/java/org/jabref/migrations/TimeStampToDateAddAndModify.java Outdated
Copy link
Copy Markdown
Member

@calixtus calixtus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three small questions/remarks.

Comment thread src/main/java/org/jabref/gui/preferences/GeneralTabView.java Outdated
Comment thread src/main/java/org/jabref/model/entry/Date.java Outdated
Comment thread src/main/java/org/jabref/logic/preferences/TimestampPreferences.java Outdated
koppor
koppor previously approved these changes Jan 14, 2021
Siedlerchr
Siedlerchr previously approved these changes Jan 14, 2021
Copy link
Copy Markdown
Member

@Siedlerchr Siedlerchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One checkstyle issue left, otherwise lgtm

@koppor koppor dismissed stale reviews from Siedlerchr and themself via 537144a January 14, 2021 20:49
@koppor koppor dismissed calixtus’s stale review January 14, 2021 21:24

All changes addressed

@koppor koppor merged commit e66f5be into master Jan 14, 2021
@koppor koppor deleted the add-date-fields branch January 14, 2021 21:25
Siedlerchr added a commit that referenced this pull request Jan 15, 2021
…dtask

* upstream/master:
  Fix regex (#7352)
  Disable certain fetcher tests on CI (#7348)
  Add date fields (#7334)

# Conflicts:
#	src/main/java/org/jabref/logic/externalfiles/ExternalFilesContentImporter.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants