# HG changeset patch # User mpm@selenic.com # Date 1127520525 25200 # Node ID 901c645c1943ae69775f3994e4344e3265db1f79 # Parent 404484c9628e055e111059348b1255851db9361b hgweb: fix date bug in hgweb diff generation diff -r 404484c9628e -r 901c645c1943 mercurial/hgweb.py --- a/mercurial/hgweb.py Fri Sep 23 10:32:19 2005 -0700 +++ b/mercurial/hgweb.py Fri Sep 23 17:08:45 2005 -0700 @@ -184,9 +184,6 @@ self.maxfiles = int(self.repo.ui.config("web", "maxfiles", 10)) self.allowpull = self.repo.ui.configbool("web", "allowpull", True) - def date(self, t): - return util.datestr(t) - def listfiles(self, files, mf): for f in files[:self.maxfiles]: yield self.t("filenodelink", node=hex(mf[f]), file=f) @@ -247,8 +244,8 @@ change2 = cl.read(node2) mmap1 = mf.read(change1[0]) mmap2 = mf.read(change2[0]) - date1 = self.date(change1) - date2 = self.date(change2) + date1 = util.datestr(change1[2]) + date2 = util.datestr(change2[2]) c, a, d, u = r.changes(node1, node2) if files: