From 9b56902017d0a334be6148f87f42fee51e1d9d6b Mon Sep 17 00:00:00 2001 From: Kolenka Date: Tue, 11 Oct 2011 19:59:44 -0700 Subject: [PATCH] Sony T1: Use localtime timestamp for modified_date --- src/calibre/devices/prst1/driver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index 592dbd8552..578a9bc65c 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -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 = '''