1.1 --- a/DateSupport.py Sun Mar 25 20:44:24 2012 +0200
1.2 +++ b/DateSupport.py Sun Mar 25 21:19:17 2012 +0200
1.3 @@ -379,7 +379,7 @@
1.4 if zone_as_offset:
1.5 utc_offset = self.utc_offset()
1.6 if utc_offset:
1.7 - time_str += "%02d:02d" % utc_offset
1.8 + time_str += " %+03d:%02d" % utc_offset
1.9 else:
1.10 time_str += " %s" % data[6]
1.11 return time_str
1.12 @@ -558,7 +558,7 @@
1.13
1.14 dt = self.as_olson_datetime()
1.15 if dt:
1.16 - seconds = dt.utcoffset().seconds
1.17 + seconds = dt.utcoffset().seconds + dt.utcoffset().days * 24 * 3600
1.18 hours = seconds / 3600
1.19 minutes = (seconds % 3600) / 60
1.20 return hours, minutes