app/models/logical/naf/application_schedule.rb in naf-2.1.12 vs app/models/logical/naf/application_schedule.rb in naf-2.1.13

- old
+ new

@@ -126,22 +126,26 @@ def run_interval output = '' time = schedule.run_interval if schedule.run_interval_style.name == 'at beginning of day' - output = exact_time_of_day(time) + output = exact_time_of_day else output = interval_time(time) end output end - def exact_time_of_day(time) + def exact_time_of_day output = '' minutes = schedule.run_interval % 60 hours = schedule.run_interval / 60 - output << hours.to_s + ':' + if hours >= 24 + output << (hours % 24).to_s + ':' + else + output << hours.to_s + ':' + end output << '%02d' % minutes output = Time.parse(output).strftime('%I:%M %p') return output end