diff --git a/src/plone/restapi/deserializer/publication_dates.py b/src/plone/restapi/deserializer/publication_dates.py index b64d5c4151..25b329e949 100644 --- a/src/plone/restapi/deserializer/publication_dates.py +++ b/src/plone/restapi/deserializer/publication_dates.py @@ -36,7 +36,9 @@ def set(self, value): return super().set(value) if value is not None: if value.tzinfo is None: - value = DateTime(value.year, value.month, value.day, value.hour, value.minute) + value = DateTime( + value.year, value.month, value.day, value.hour, value.minute + ) else: value = DateTime(value) setattr(self.context, self.name, value) diff --git a/src/plone/restapi/serializer/dxfields.py b/src/plone/restapi/serializer/dxfields.py index d6db342260..94e1546e1e 100644 --- a/src/plone/restapi/serializer/dxfields.py +++ b/src/plone/restapi/serializer/dxfields.py @@ -1,5 +1,4 @@ from AccessControl import getSecurityManager -from DateTime import DateTime from plone.app.contenttypes.interfaces import ILink from plone.app.contenttypes.utils import replace_link_variables_by_paths from plone.app.dexterity.behaviors.metadata import IPublication