1.1 --- a/imiptools/period.py Sun May 17 00:14:36 2015 +0200
1.2 +++ b/imiptools/period.py Sun May 17 00:39:38 2015 +0200
1.3 @@ -301,15 +301,17 @@
1.4
1.5 # Add a point and this event to the starting list.
1.6
1.7 - if not scale.has_key(p.get_start(tzid)):
1.8 - scale[p.get_start(tzid)] = [], []
1.9 - scale[p.get_start(tzid)][0].append(p)
1.10 + start = to_timezone(p.get_start(), tzid)
1.11 + if not scale.has_key(start):
1.12 + scale[start] = [], []
1.13 + scale[start][0].append(p)
1.14
1.15 # Add a point and this event to the ending list.
1.16
1.17 - if not scale.has_key(p.get_end(tzid)):
1.18 - scale[p.get_end(tzid)] = [], []
1.19 - scale[p.get_end(tzid)][1].append(p)
1.20 + end = to_timezone(p.get_end(), tzid)
1.21 + if not scale.has_key(end):
1.22 + scale[end] = [], []
1.23 + scale[end][1].append(p)
1.24
1.25 return scale
1.26