pld-builder.new: PLD_Builder/request.py Use correct timezone offset.
arekm
arekm at pld-linux.org
Tue Jun 28 15:53:17 CEST 2011
Author: arekm Date: Tue Jun 28 13:53:17 2011 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
Use correct timezone offset.
---- Files affected:
pld-builder.new/PLD_Builder:
request.py (1.90 -> 1.91)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.90 pld-builder.new/PLD_Builder/request.py:1.91
--- pld-builder.new/PLD_Builder/request.py:1.90 Thu Nov 11 12:55:45 2010
+++ pld-builder.new/PLD_Builder/request.py Tue Jun 28 15:53:12 2011
@@ -43,7 +43,8 @@
date = time.strftime("%a %b %d %Y %H:%M:%S", time.localtime(t))
# NOTE: the altzone is showing CURRENT timezone, not what the "t" reflects
# NOTE: when DST is off timezone gets it right, altzone not
- tz = '{:=+05d}'.format(-time.timezone / 3600 * 100)
+ tzoffset = time.altzone if time.daylight else time.timezone
+ tz = '{:=+05d}'.format(-tzoffset / 3600 * 100)
return date + ' ' + tz
def is_blank(e):
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/request.py?r1=1.90&r2=1.91&f=u
More information about the pld-cvs-commit
mailing list