mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08: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