must be use round

This commit is contained in:
Kolay 2018-06-15 00:32:55 +03:00 committed by GitHub
parent e8e108ecae
commit dd0fb98376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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