mercurial/templatekw.py
changeset 38297 8d6109b49b31
parent 38295 0e0d03d09ecd
child 38310 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):