changeset 31449 | 756175623f2e |
parent 31448 | 6419cd243017 |
child 31451 | 53865692a354 |
--- a/mercurial/util.py Mon Mar 13 09:12:56 2017 -0700 +++ b/mercurial/util.py Mon Mar 13 09:19:07 2017 -0700 @@ -1792,7 +1792,7 @@ # because they use the gmtime() system call which is buggy on Windows # for negative values. t = datetime.datetime(1970, 1, 1) + datetime.timedelta(seconds=d) - s = t.strftime(format) + s = encoding.strtolocal(t.strftime(encoding.strfromlocal(format))) return s def shortdate(date=None):