mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:33:30 +02:00
Fix #75
This commit is contained in:
parent
fbbf71ffc4
commit
d7b5e3dbbc
1 changed files with 1 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ def __init__(self, t=None):
|
|||
self.number = SetTime.NUMBER
|
||||
self.type = 0x01
|
||||
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
|
||||
if not t: t = time.time()
|
||||
t = time.gmtime(t)
|
||||
|
|
|
|||
Loading…
Reference in a new issue