mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
9a29e08d4b
commit
45998a7650
@ -303,7 +303,7 @@ class BooksModel(QAbstractTableModel):
|
|||||||
dt = self.db.timestamp(row)
|
dt = self.db.timestamp(row)
|
||||||
if dt:
|
if dt:
|
||||||
dt = dt - timedelta(seconds=time.timezone) + timedelta(hours=time.daylight)
|
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:
|
elif col == 4:
|
||||||
r = self.db.rating(row)
|
r = self.db.rating(row)
|
||||||
r = r/2 if r else 0
|
r = r/2 if r else 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user