X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fa5a185ce54eb7bacaadc34f05abb63e701d39d8..222ee5203f1559d81672089fb8208835ecc280f4:/apps/api/helpers.py?ds=sidebyside

diff --git a/apps/api/helpers.py b/apps/api/helpers.py
index f01522aa7..aa22465fc 100644
--- a/apps/api/helpers.py
+++ b/apps/api/helpers.py
@@ -3,6 +3,6 @@
 from time import mktime
 
 def timestamp(dtime):
-    "converts a datetime.datetime object to a timestamp with fractional part"
-    return mktime(dtime.timetuple()) + dtime.microsecond / 1000000.0
+    "converts a datetime.datetime object to a timestamp int"
+    return int(mktime(dtime.timetuple()))