mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 10:59:06 +01:00
Fix #893427 (published date column saving wrong month)
This commit is contained in:
commit
ec470afdae
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
from calibre.ebooks.metadata.book.base import SafeFormat
|
||||
from calibre.ptempfile import PersistentTemporaryFile
|
||||
from calibre.utils.config import tweaks, prefs
|
||||
from calibre.utils.date import dt_factory, qt_to_dt
|
||||
from calibre.utils.date import dt_factory, qt_to_dt, as_local_time
|
||||
from calibre.utils.icu import sort_key
|
||||
from calibre.utils.search_query_parser import SearchQueryParser
|
||||
from calibre.library.caches import (_match, CONTAINS_MATCH, EQUALS_MATCH,
|
||||
|
|
@ -580,7 +580,7 @@ def rating_type(r, idx=-1):
|
|||
def datetime_type(r, idx=-1):
|
||||
val = self.db.data[r][idx]
|
||||
if val is not None:
|
||||
return QVariant(QDateTime(val))
|
||||
return QVariant(QDateTime(as_local_time(val)))
|
||||
else:
|
||||
return QVariant(UNDEFINED_QDATETIME)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue