mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
add time query test
This commit is contained in:
parent
48b422e289
commit
ad83a7e076
|
@ -61,5 +61,5 @@ class Time(Scalar):
|
|||
|
||||
@classmethod
|
||||
def parse_value(cls, value):
|
||||
dt = iso8601.parse_date('{}T{}'.format(cls.epoch_time, value))
|
||||
dt = iso8601.parse_date('{}T{}'.format(cls.epoch_date, value))
|
||||
return datetime.time(dt.hour, dt.minute, dt.second, dt.microsecond, dt.tzinfo)
|
||||
|
|
Loading…
Reference in New Issue
Block a user