Skip to content
Snippets Groups Projects
Commit 6f3e7338 authored by Augie Fackler's avatar Augie Fackler
Browse files

churn: fix stack traces on Python 3

Differential Revision: https://phab.mercurial-scm.org/D5062
parent 379dd054
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,8 @@
def getkey(ctx):
t, tz = ctx.date()
date = datetime.datetime(*time.gmtime(float(t) - tz)[:6])
return date.strftime(encoding.strfromlocal(opts['dateformat']))
return encoding.strtolocal(
date.strftime(encoding.strfromlocal(opts['dateformat'])))
else:
tmpl = opts.get('oldtemplate') or opts.get('template')
tmpl = logcmdutil.maketemplater(ui, repo, tmpl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment