changeset 37770 | 31750413f8d7 |
parent 37597 | d110167610db |
child 37839 | 395571419274 |
--- a/mercurial/formatter.py Tue Apr 17 03:07:01 2018 +0200 +++ b/mercurial/formatter.py Fri Apr 13 22:58:49 2018 +0900 @@ -144,7 +144,9 @@ @staticmethod def formatdate(date, fmt): '''convert date tuple to appropriate format''' - return date + # timestamp can be float, but the canonical form should be int + ts, tz = date + return (int(ts), tz) @staticmethod def formatdict(data, key, value, fmt, sep): '''convert dict or key-value pairs to appropriate dict format'''