From d7b5e3dbbc7cff20083163b29aac4ba114f36eb9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 18 May 2007 20:19:01 +0000 Subject: [PATCH] Fix #75 --- src/libprs500/devices/prs500/prstypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libprs500/devices/prs500/prstypes.py b/src/libprs500/devices/prs500/prstypes.py index 9bc80010f7..0924ecd0a6 100755 --- a/src/libprs500/devices/prs500/prstypes.py +++ b/src/libprs500/devices/prs500/prstypes.py @@ -343,7 +343,7 @@ class SetTime(Command): 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)