Switch back to using timetuple.
Since we no longer have to worry about python 2.4 compat, switch back to better looking timestamps.
This commit is contained in:
parent
ba3bd59641
commit
5a568706a6
1 changed files with 1 additions and 4 deletions
|
@ -190,10 +190,7 @@ def display_bug(bug, comments):
|
|||
b.append('Assigned to: %s' % (bug.assigned_to))
|
||||
for i in comments:
|
||||
b.append('-'*40)
|
||||
#b.append('Comment %d by %s at %s\n' % (comment, i['author'], time.strftime('%F %T',i['time'].timetuple())))
|
||||
#b.append('Comment %d by %s at %04d-%02d-%02d %02d:%02d%02d\n' % (
|
||||
b.append('Comment %d by %s at %s\n' % (
|
||||
comment, i['author'], i['time']))
|
||||
b.append('Comment %d by %s at %s\n' % (comment, i['author'], time.strftime('%F %T',i['time'].timetuple())))
|
||||
b.append(i['text'])
|
||||
b.append('')
|
||||
comment += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue