Mercurial > hg-stable
diff hgext/journal.py @ 29693:e54bdd3aa23b
journal: use fm.formatdate() to pass date tuple in appropriate type (BC)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 31 Jul 2016 17:11:48 +0900 |
parents | 69890b5dd32b |
children | 46d9a5bb2fb0 |
line wrap: on
line diff
--- a/hgext/journal.py Sun Jul 31 17:07:29 2016 +0900 +++ b/hgext/journal.py Sun Jul 31 17:11:48 2016 +0900 @@ -488,7 +488,7 @@ opts.get('all') or name.startswith('re:'), 'name', ' %-8s', entry.name) - timestring = util.datestr(entry.timestamp, '%Y-%m-%d %H:%M %1%2') + timestring = fm.formatdate(entry.timestamp, '%Y-%m-%d %H:%M %1%2') fm.condwrite(ui.verbose, 'date', ' %s', timestring) fm.write('command', ' %s\n', entry.command)