changeset 1348:b8c82bf3da21

hgwebdir: Fix date display
author mpm@selenic.com
date Sat, 24 Sep 2005 11:33:20 -0700
parents e89033eb90a5
children c6295d2a361e
files mercurial/hgweb.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb.py	Fri Sep 23 19:46:43 2005 -0700
+++ b/mercurial/hgweb.py	Sat Sep 24 11:33:20 2005 -0700
@@ -951,6 +951,11 @@
                 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
                        .replace("//", "/"))
 
+                # update time with local timezone
+                d = (os.stat(os.path.join(path,
+                                          ".hg", "00changelog.d")).st_mtime,
+                     util.makedate()[1])
+
                 yield dict(contact=(get("ui", "username") or # preferred
                                     get("web", "contact") or # deprecated
                                     get("web", "author", "unknown")), # also
@@ -958,8 +963,7 @@
                            url=url,
                            parity=parity,
                            shortdesc=get("web", "description", "unknown"),
-                           lastupdate=os.stat(os.path.join(path, ".hg",
-                                              "00changelog.d")).st_mtime)
+                           lastupdate=d)
 
                 parity = 1 - parity