changeset 769:813802d5072a pytest2

we always use UTC internally (fix MTIME in index)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 24 Aug 2011 18:19:30 +0200
parents 9375b8a6a188
children a4ec2c6f0bb7
files MoinMoin/search/indexing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/indexing.py	Wed Aug 24 18:17:35 2011 +0200
+++ b/MoinMoin/search/indexing.py	Wed Aug 24 18:19:30 2011 +0200
@@ -34,7 +34,7 @@
     doc = dict([(str(key), value)
                 for key, value in backend_rev.items()
                 if key in schema])
-    doc[MTIME] = datetime.datetime.fromtimestamp(backend_rev[MTIME])
+    doc[MTIME] = datetime.datetime.utcfromtimestamp(backend_rev[MTIME])
     doc["name_exact"] = backend_rev[NAME]
     doc["rev_no"] = rev_no
     doc["wikiname"] = wikiname