Sony T1: Use localtime timestamp for modified_date

This commit is contained in:
Kolenka 2011-10-11 19:59:44 -07:00
parent b6a7aa34f3
commit 9b56902017

View File

@ -269,7 +269,11 @@ class PRST1(USBMS):
except: except:
author = _('Unknown') author = _('Unknown')
title = newmi.title or _('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: if lpath not in db_books:
query = ''' query = '''