use time zone for extra safety

This commit is contained in:
Sam 2017-07-24 13:08:17 -04:00
parent 7ebb9874a8
commit 80bb127cd3
1 changed files with 1 additions and 1 deletions

View File

@ -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