diff mercurial/templater.py @ 5269:46c5e1ee8aaa

Added support for the Atom syndication format
author Robert Bachmann <rbach@rbach.priv.at>
date Thu, 30 Aug 2007 16:42:17 +0200
parents e21a0e12ff10
children d0576d065993
line wrap: on
line diff
--- a/mercurial/templater.py	Wed Aug 29 17:01:10 2007 -0700
+++ b/mercurial/templater.py	Thu Aug 30 16:42:17 2007 +0200
@@ -270,6 +270,7 @@
     "permissions": permissions,
     "person": person,
     "rfc822date": lambda x: util.datestr(x, "%a, %d %b %Y %H:%M:%S"),
+    "rfc3339date": lambda x: util.datestr(x, "%Y-%m-%dT%H:%M:%S", True, "%+03d:%02d"),
     "short": lambda x: x[:12],
     "shortdate": shortdate,
     "stringify": stringify,