Submitter | Yuya Nishihara |
---|---|
Date | March 13, 2017, 6:59 p.m. |
Message ID | <2657aad32bdde8ab6225.1489431547@mimosa> |
Download | mbox | patch |
Permalink | /patch/19295/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1792,7 +1792,7 @@ def datestr(date=None, format='%a %b %d # 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):