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