1.1 --- a/imiptools/data.py Sat Mar 28 00:55:12 2015 +0100
1.2 +++ b/imiptools/data.py Sat Mar 28 01:11:56 2015 +0100
1.3 @@ -164,8 +164,8 @@
1.4
1.5 # Write the limits of the resource.
1.6
1.7 - rwrite(("DTSTART", {"VALUE" : "DATE-TIME"}, periods[0][0]))
1.8 - rwrite(("DTEND", {"VALUE" : "DATE-TIME"}, periods[-1][1]))
1.9 + rwrite(("DTSTART", {"VALUE" : "DATE-TIME"}, periods[0].start))
1.10 + rwrite(("DTEND", {"VALUE" : "DATE-TIME"}, periods[-1].end))
1.11
1.12 for p in periods:
1.13 if p.transp == "OPAQUE":