diff mercurial/formatter.py @ 38285:8d6109b49b31

templater: introduce a wrapper for date tuple (BC) Strictly speaking, this is BC, but I believe the original string format (str(float(unixtime)) + str(int(tzoffset))) was just plain wrong.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 17:54:02 +0900
parents 395571419274
children 8221df643176
line wrap: on
line diff
--- a/mercurial/formatter.py	Sat Apr 21 19:01:35 2018 +0900
+++ b/mercurial/formatter.py	Sat Mar 24 17:54:02 2018 +0900
@@ -367,7 +367,7 @@
     @staticmethod
     def formatdate(date, fmt):
         '''return date tuple'''
-        return date
+        return templateutil.date(date)
     @staticmethod
     def formatdict(data, key, value, fmt, sep):
         '''build object that can be evaluated as either plain string or dict'''