Commit 4040f974 by Calen Pennington

Correctly parse timetuple into datetime

parent 7f39dd97
......@@ -8,7 +8,7 @@ class DateTuple(ModelType):
ModelType that stores datetime objects as time tuples
"""
def from_json(self, value):
return datetime.datetime(*value)
return datetime.datetime(*value[0:6])
def to_json(self, value):
return list(value.timetuple())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment