]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- tz without dst fix
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 11 Nov 2010 11:55:45 +0000 (11:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/request.py -> 1.90

PLD_Builder/request.py

index b96460f8ccd4be731d9bf58db5f73a8cfc46e7e0..992c8751f163eaf4c01ac405f7d31c9418836487 100644 (file)
@@ -42,7 +42,8 @@ def tzdate(t):
 #    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):
This page took 0.100358 seconds and 4 git commands to generate.