mercurial/hgweb.py
changeset 600 11c379e23ad6
parent 599 765182a4c843
child 601 8865eb8ade99
--- a/mercurial/hgweb.py	Sun Jul 03 13:32:59 2005 -0800
+++ b/mercurial/hgweb.py	Sun Jul 03 20:10:21 2005 -0800
@@ -109,10 +109,7 @@
         return template(tmpl, self.filters, **map)
 
 def rfc822date(x):
-    month= [None,"Jan", "Feb", "Mar", "Apr", "May", "Jun",
-                 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-    yyyy,mon,dd,hh,mm,ss,wd,x,y = time.gmtime(x)
-    return "%d %s %d %d:%d:%d"%(dd, month[mon], yyyy, hh, mm, ss)
+    return strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime(x))
 
 class hgweb:
     maxchanges = 10