mirror of
https://github.com/enpaul/keyosk.git
synced 2024-11-24 23:47:49 +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 int(value.replace(tzinfo=datetime.timezone.utc).timestamp())
|
||||||
return value
|
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"""
|
"""Deserialize an integer to a datetime object"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user