chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d361d
)
make sure apk-added datetime only gets returned rounded to days
author
Michael Pöhn
<michael.poehn@fsfe.org>
Fri, 25 Aug 2017 23:44:02 +0000
(
01:44
+0200)
committer
Michael Pöhn
<michael.poehn@fsfe.org>
Tue, 26 Sep 2017 12:13:04 +0000
(14:13 +0200)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 8b35d49e1d70e85e292c0c447c030799c757c9b3..ed4e551ed88776cfefdb03688d5fef9de2b90b84 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-1686,6
+1686,7
@@
class KnownApks:
if apkName not in self.apks:
if default_date is None:
default_date = datetime.utcnow()
+ default_date = datetime(default_date.year, default_date.month, default_date.day, 0, 0, 0, 0)
self.apks[apkName] = (app, default_date)
self.changed = True
_, added = self.apks[apkName]