Skip to content

Commit

Permalink
Correct old comment for a proper new one
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Aug 30, 2017
1 parent 9112b29 commit 7f5dd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/restapi/deserializer/dxfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DatetimeFieldDeserializer(DefaultFieldDeserializer):
def __call__(self, value):
try:
# Parse ISO 8601 string with Zope's DateTime module
# and convert to a timezone naive datetime in local time
# and convert to a UTC based timezone as datetime
value = DateTime(value).toZone('UTC').asdatetime()
except (SyntaxError, DateTimeError) as e:
raise ValueError(e.message)
Expand Down

0 comments on commit 7f5dd84

Please sign in to comment.