Merge "iso8601.is8601.Utc No Longer Exists"

This commit is contained in:
Jenkins 2017-09-27 13:27:47 +00:00 committed by Gerrit Code Review
commit 6165add042
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ class DateTime(FieldType):
# NOTE(danms): Legacy objects from sqlalchemy are stored in UTC,
# but are returned without a timezone attached.
# As a transitional aid, assume a tz-naive object is in UTC.
value = value.replace(tzinfo=iso8601.iso8601.Utc())
value = value.replace(tzinfo=iso8601.UTC)
elif not self.tzinfo_aware:
value = value.replace(tzinfo=None)
return value