mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
must be use round
This commit is contained in:
parent
e8e108ecae
commit
dd0fb98376
1 changed files with 1 additions and 1 deletions
|
|
@ -54,5 +54,5 @@ def prepare_arg(value):
|
|||
now = datetime.datetime.now()
|
||||
return int((now + value).timestamp())
|
||||
elif isinstance(value, datetime.datetime):
|
||||
return int(value.timestamp())
|
||||
return round(value.timestamp())
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue