mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #75
This commit is contained in:
parent
fbbf71ffc4
commit
d7b5e3dbbc
@ -343,7 +343,7 @@ class SetTime(Command):
|
|||||||
self.number = SetTime.NUMBER
|
self.number = SetTime.NUMBER
|
||||||
self.type = 0x01
|
self.type = 0x01
|
||||||
self.length = 0x1c
|
self.length = 0x1c
|
||||||
tz = int(-time.timezone/60.)
|
tz = -int(time.timezone/60. -(60 if time.daylight else 0) )
|
||||||
self.timezone = tz if tz > 0 else 0xffffffff +1 + tz
|
self.timezone = tz if tz > 0 else 0xffffffff +1 + tz
|
||||||
if not t: t = time.time()
|
if not t: t = time.time()
|
||||||
t = time.gmtime(t)
|
t = time.gmtime(t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user