Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG543b7b349b2c: py3: make sure we pass str to date.strftime()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
- return date.strftime(opts['dateformat'])
+ return date.strftime(pycompat.sysstr(opts['dateformat']))
Should be encoding.strfromlocal() because opts['dateformat'] is provided
by user.