lib/chronic/handlers.rb in chronic-0.1.4 vs lib/chronic/handlers.rb in chronic-0.1.5

- old
+ new

@@ -86,11 +86,11 @@ #-------------- def handle_m_d(month, day, time_tokens, options) #:nodoc: month.start = @now - span = month.next(options[:context]) + span = month.this(options[:context]) day_start = Time.local(span.begin.year, span.begin.month, day) day_or_time(day_start, time_tokens, options) end @@ -211,10 +211,10 @@ repeater.offset(span, distance, pointer) end def handle_s_r_p(tokens, options) #:nodoc: repeater = tokens[1].get_tag(Repeater) - + span = case true when [RepeaterYear, RepeaterSeason, RepeaterSeasonName, RepeaterMonth, RepeaterMonthName, RepeaterFortnight, RepeaterWeek].include?(repeater.class) self.parse("this hour", :guess => false, :now => @now) when [RepeaterWeekend, RepeaterDay, RepeaterDayName, RepeaterDayPortion, RepeaterHour].include?(repeater.class) \ No newline at end of file