changeset 38157 | 282f3daac1d7 |
parent 38115 | 1978abdb216c |
child 38407 | 5c0f06a8b497 |
--- a/hgext/churn.py Sun May 20 23:05:18 2018 -0400 +++ b/hgext/churn.py Mon May 21 23:26:53 2018 +0530 @@ -52,7 +52,7 @@ def getkey(ctx): t, tz = ctx.date() date = datetime.datetime(*time.gmtime(float(t) - tz)[:6]) - return date.strftime(pycompat.sysstr(opts['dateformat'])) + return date.strftime(encoding.strfromlocal(opts['dateformat'])) else: tmpl = opts.get('oldtemplate') or opts.get('template') tmpl = logcmdutil.maketemplater(ui, repo, tmpl)