Update datetime.py

Restore ios8601 handling per https://github.com/graphql-python/graphene/pull/152/files
This commit is contained in:
Michael Huang 2016-10-03 19:07:16 -07:00 committed by GitHub
parent c961f0b3c6
commit 9231e0d28d

View File

@ -36,4 +36,4 @@ class DateTime(Scalar):
@staticmethod
def parse_value(value):
return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
return iso8601.parse_date(value)