lib/ri_cal/component/calendar.rb in rubyredrick-ri_cal-0.5.2 vs lib/ri_cal/component/calendar.rb in rubyredrick-ri_cal-0.5.3

- old
+ new

@@ -138,10 +138,11 @@ local_date_time(tzinfo.utc_to_local(local.to_ri_cal_ruby_value), tzinfo.identifier) end def rational_utc_offset(local) - Rational(tzinfo.period_for_local(local, true).utc_total_offset, 3600) / 24 + # 86400 is the number of seconds in a day + RiCal.RationalOffset[tzinfo.period_for_local(local, true).utc_total_offset] end end def find_timezone(identifier) #:nodoc: