mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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!
|
@info.schedule!
|
||||||
|
|
||||||
expect(JSON.parse($redis.get(@info.key))["next_run"])
|
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)
|
expect(@info.valid?).to eq(true)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user