Fix for a bug introduced in refactoring: customized pdfs were instantly deleted,...
[wolnelektury.git] / apps / api / helpers.py
index f01522a..aa22465 100644 (file)
@@ -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()))