lib/vpim/rrule.rb in vpim-rails-0.663 vs lib/vpim/rrule.rb in vpim-rails-0.664
- old
+ new
@@ -450,10 +450,10 @@
if str =~ /T/
d = Vpim.decode_date_time(str)
# We get [ year, month, day, hour, min, sec, usec, tz ]
if(d.pop == "Z")
- t = Time.gm(*d)
+ t = Time.use_zone("UTC") { Time.zone.local(*d) }
else
t = Time.zone.local(*d)
end
else
d = Vpim.decode_date(str)