lib/quartz_flow/usagetracker.rb in quartz_flow-0.0.3 vs lib/quartz_flow/usagetracker.rb in quartz_flow-0.0.4

- old
+ new

@@ -189,10 +189,12 @@ end def criteriaData now = Time.new nextMonth = now.mon % 12 + 1 - Time.local(now.year, nextMonth, @resetDay) + year = now.year + year += 1 if nextMonth == 1 + Time.local(year, nextMonth, @resetDay) end end # For testing