mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
keep time consistent, we always use to_i
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user