##// END OF EJS Templates
hgwebdir: Fix date display
mpm@selenic.com -
r1348:b8c82bf3 default
parent child Browse files
Show More
@@ -951,6 +951,11 b' class hgwebdir:'
951 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
951 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
952 .replace("//", "/"))
952 .replace("//", "/"))
953
953
954 # update time with local timezone
955 d = (os.stat(os.path.join(path,
956 ".hg", "00changelog.d")).st_mtime,
957 util.makedate()[1])
958
954 yield dict(contact=(get("ui", "username") or # preferred
959 yield dict(contact=(get("ui", "username") or # preferred
955 get("web", "contact") or # deprecated
960 get("web", "contact") or # deprecated
956 get("web", "author", "unknown")), # also
961 get("web", "author", "unknown")), # also
@@ -958,8 +963,7 b' class hgwebdir:'
958 url=url,
963 url=url,
959 parity=parity,
964 parity=parity,
960 shortdesc=get("web", "description", "unknown"),
965 shortdesc=get("web", "description", "unknown"),
961 lastupdate=os.stat(os.path.join(path, ".hg",
966 lastupdate=d)
962 "00changelog.d")).st_mtime)
963
967
964 parity = 1 - parity
968 parity = 1 - parity
965
969
General Comments 0
You need to be logged in to leave comments. Login now