[Console] Ensure time string is unicode

This commit is contained in:
Calum Lind 2018-07-09 20:33:10 +01:00
parent 4c0be7ddd4
commit c655da38c8

View File

@ -607,6 +607,8 @@ class EventLog(component.Component):
if date_different:
string = time.strftime(self.date_change_format)
if deluge.common.PY2:
string = string.decode()
self.console.write_event(' ')
self.console.write_event(string)