mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-05 06:07:06 +00:00
!fixup fields
This commit is contained in:
parent
430ff8f3f4
commit
e3de950147
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user