mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
added time type
This commit is contained in:
parent
dddb20a0f4
commit
f089c78b99
|
@ -61,5 +61,5 @@ class Time(Scalar):
|
|||
|
||||
@classmethod
|
||||
def parse_value(cls, value):
|
||||
dt = iso8601.parse_date('{}T{}'.format(cls.epocj_time, value))
|
||||
dt = iso8601.parse_date('{}T{}'.format(cls.epoch_time, value))
|
||||
return datetime.time(dt.hour, dt.minute, dt.second, dt.microsecond, dt.tzinfo)
|
||||
|
|
Loading…
Reference in New Issue
Block a user