Merge pull request #50 from kolayv/patch-1

must be use round
This commit is contained in:
Alex Root Junior 2018-06-15 23:11:59 +03:00 committed by GitHub
commit 887e715f06
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