mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 21:54:44 +08:00
use time zone for extra safety
This commit is contained in:
parent
7ebb9874a8
commit
80bb127cd3
@ -89,7 +89,7 @@ describe Scheduler::ScheduleInfo do
|
||||
@info.schedule!
|
||||
|
||||
expect(JSON.parse($redis.get(@info.key))["next_run"])
|
||||
.to eq((Time.now.midnight + 11.hours).to_i)
|
||||
.to eq((Time.zone.now.midnight + 11.hours).to_i)
|
||||
|
||||
expect(@info.valid?).to eq(true)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user