1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-12-26 01:33:33 +00:00

!fixup fields

This commit is contained in:
Ethan Paul 2020-03-09 00:31:59 -04:00
parent 430ff8f3f4
commit e3de950147

View File

@ -96,7 +96,7 @@ class Epoch(msh.fields.Field):
return int(value.replace(tzinfo=datetime.timezone.utc).timestamp())
return value
def _deserialize(self, value: int, attr, data, **kwargs) -> datetime:
def _deserialize(self, value: int, attr, data, **kwargs) -> datetime.datetime:
"""Deserialize an integer to a datetime object"""
try: