mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Sony T1: Use localtime timestamp for modified_date
This commit is contained in:
parent
b6a7aa34f3
commit
9b56902017
@ -269,7 +269,11 @@ class PRST1(USBMS):
|
||||
except:
|
||||
author = _('Unknown')
|
||||
title = newmi.title or _('Unknown')
|
||||
modified_date = os.path.getmtime(book.path) * 1000
|
||||
|
||||
# Get modified date
|
||||
modified_date = os.path.getmtime(book.path)
|
||||
time_offset = time.altzone if time.daylight else time.timezone
|
||||
modified_date = (modified_date - time_offset) * 1000
|
||||
|
||||
if lpath not in db_books:
|
||||
query = '''
|
||||
|
Loading…
x
Reference in New Issue
Block a user