mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix time correction problems caused by using UTC.
This commit is contained in:
parent
c4d5cc6e5d
commit
a44494a47c
@ -293,7 +293,7 @@ def clean_date_for_sort(dt, format):
|
||||
|
||||
if hasattr(dt, 'tzinfo'):
|
||||
if dt.tzinfo is not None:
|
||||
dt = as_utc(dt)
|
||||
dt = as_local_time(dt)
|
||||
|
||||
if format == 'iso':
|
||||
format = 'yyMdhms'
|
||||
|
Loading…
x
Reference in New Issue
Block a user