# HG changeset patch # User mpm@selenic.com # Date 1127586800 25200 # Node ID b8c82bf3da213c3b4d7b7e4e3ffe5126a8552a10 # Parent e89033eb90a5592062bdc6952a38d7c1becd6fc2 hgwebdir: Fix date display diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -951,6 +951,11 @@ class hgwebdir: 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 @@ class hgwebdir: 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