# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1511925025 -19800 # Node ID d4b108fdf4231565ec15656ba0f7e8d96fe7ff29 # Parent 4ee493ea1c13d3639de0c4d17959045baf702f32 py3: use encoding.strtolocal() to convert string to bytes Differential Revision: https://phab.mercurial-scm.org/D1557 diff -r 4ee493ea1c13 -r d4b108fdf423 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Wed Nov 29 08:39:48 2017 +0530 +++ b/mercurial/debugcommands.py Wed Nov 29 08:40:25 2017 +0530 @@ -721,6 +721,7 @@ else: timestr = time.strftime(r"%Y-%m-%d %H:%M:%S ", time.localtime(ent[3])) + timestr = encoding.strtolocal(timestr) if ent[1] & 0o20000: mode = 'lnk' else: