Skip to content

Commit

Permalink
Update invenio_rdm_records/services/components/metadata.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Arbid <36583694+Samk13@users.noreply.github.com>
  • Loading branch information
lnielsen and Samk13 authored Dec 12, 2023
1 parent 23ece56 commit 41ac29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_rdm_records/services/components/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MetadataComponent(ServiceComponent):
field = "metadata"
new_version_skip_fields = ["publication_date", "version"]
new_version_generated_fields = {
"publication_date": lambda draft, record: datetime.today().isoformat(),
"publication_date": lambda draft, record: datetime.today(timezone.utc).isoformat(),
}

def create(self, identity, data=None, record=None, **kwargs):
Expand Down

0 comments on commit 41ac29d

Please sign in to comment.