Skip to content

Commit

Permalink
serializers: change dates field format to EDTFDateAndTime
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and slint committed Nov 29, 2023
1 parent 3ed80c9 commit 461aba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/zenodo_rdm/legacy/serializers/schemas/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from invenio_communities.communities.services.service import get_cached_community_slug
from invenio_communities.proxies import current_communities
from marshmallow import Schema, fields, missing, post_dump, pre_dump
from marshmallow_utils.fields import EDTFDateString, SanitizedHTML, SanitizedUnicode
from marshmallow_utils.fields import EDTFDateTimeString, SanitizedHTML, SanitizedUnicode
from zenodo_legacy.funders import FUNDER_ACRONYMS, FUNDER_ROR_TO_DOI
from zenodo_legacy.licenses import rdm_to_legacy

Expand Down Expand Up @@ -122,8 +122,8 @@ def dump_role(self, obj):
class DateSchema(Schema):
"""Date schema."""

start = EDTFDateString()
end = EDTFDateString()
start = EDTFDateTimeString()
end = EDTFDateTimeString()
type = SanitizedUnicode(attribute="type.id")
description = SanitizedUnicode()

Expand Down

0 comments on commit 461aba6

Please sign in to comment.