This commit is contained in:
Kovid Goyal 2008-04-02 02:35:25 +00:00
parent 9a29e08d4b
commit 45998a7650

View File

@ -303,7 +303,7 @@ class BooksModel(QAbstractTableModel):
dt = self.db.timestamp(row)
if dt:
dt = dt - timedelta(seconds=time.timezone) + timedelta(hours=time.daylight)
return QVariant(dt.strftime(BooksView.TIME_FMT).decode(pe))
return QVariant(dt.strftime(BooksView.TIME_FMT).decode(pe, 'replace'))
elif col == 4:
r = self.db.rating(row)
r = r/2 if r else 0