keep time consistent, we always use to_i

This commit is contained in:
Sam 2017-10-11 14:26:50 +11:00
parent faa4c4e5f7
commit 233299982f
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ module Scheduler
RailsMultisite::ConnectionManagement.with_connection("default") do
klass = name.constantize
info = klass.schedule_info
info.next_run = Time.now.to_f
info.next_run = Time.now.to_i
info.write!
redirect "#{root_path}scheduler"