pld-builder.new: PLD_Builder/request.py - tz without dst fix
glen
glen at pld-linux.org
Thu Nov 11 12:55:51 CET 2010
Author: glen Date: Thu Nov 11 11:55:51 2010 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- tz without dst fix
---- Files affected:
pld-builder.new/PLD_Builder:
request.py (1.89 -> 1.90)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.89 pld-builder.new/PLD_Builder/request.py:1.90
--- pld-builder.new/PLD_Builder/request.py:1.89 Wed Oct 20 19:13:22 2010
+++ pld-builder.new/PLD_Builder/request.py Thu Nov 11 12:55:45 2010
@@ -42,7 +42,8 @@
# date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(t))
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
- tz = '{:=+05d}'.format(-time.altzone / 3600 * 100)
+ # NOTE: when DST is off timezone gets it right, altzone not
+ tz = '{:=+05d}'.format(-time.timezone / 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.89&r2=1.90&f=u
More information about the pld-cvs-commit
mailing list