##// END OF EJS Templates
fix handling of daylight saving time
Benoit Boissinot -
r1482:4d38b85e default
parent child Browse files
Show More
@@ -610,10 +610,12 b' def filechunkiter(f, size = 65536):'
610 s = f.read(size)
610 s = f.read(size)
611
611
612 def makedate():
612 def makedate():
613 t = time.time()
613 lt = time.localtime()
614 if time.daylight: tz = time.altzone
614 if lt[8] == 1 and time.daylight:
615 else: tz = time.timezone
615 tz = time.altzone
616 return t, tz
616 else:
617 tz = time.timezone
618 return time.mktime(lt), tz
617
619
618 def datestr(date=None, format='%c'):
620 def datestr(date=None, format='%c'):
619 """represent a (unixtime, offset) tuple as a localized time.
621 """represent a (unixtime, offset) tuple as a localized time.
General Comments 0
You need to be logged in to leave comments. Login now