fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cover colors
[wolnelektury.git]
/
apps
/
api
/
helpers.py
diff --git
a/apps/api/helpers.py
b/apps/api/helpers.py
index
f01522a
..
aa22465
100644
(file)
--- a/
apps/api/helpers.py
+++ b/
apps/api/helpers.py
@@
-3,6
+3,6
@@
from time import mktime
def timestamp(dtime):
from time import mktime
def timestamp(dtime):
- "converts a datetime.datetime object to a timestamp
with fractional par
t"
- return
mktime(dtime.timetuple()) + dtime.microsecond / 1000000.0
+ "converts a datetime.datetime object to a timestamp
in
t"
+ return
int(mktime(dtime.timetuple()))