mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
Fix date parser.
This commit is contained in:
parent
f42f4d0c9c
commit
38bad5454e
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class Deserializable:
|
|||
|
||||
@classmethod
|
||||
def _parse_date(cls, unix_time):
|
||||
if unix_time is not None:
|
||||
if unix_time:
|
||||
return datetime.datetime.fromtimestamp(unix_time)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue