mercurial/templatekw.py
changeset 38285 8d6109b49b31
parent 38283 0e0d03d09ecd
child 38299 88e7105b5cd9
--- a/mercurial/templatekw.py	Sat Apr 21 19:01:35 2018 +0900
+++ b/mercurial/templatekw.py	Sat Mar 24 17:54:02 2018 +0900
@@ -240,7 +240,7 @@
 def showdate(context, mapping):
     """Date information. The date when the changeset was committed."""
     ctx = context.resource(mapping, 'ctx')
-    return ctx.date()
+    return templateutil.date(ctx.date())
 
 @templatekeyword('desc', requires={'ctx'})
 def showdescription(context, mapping):