Skip to content

Commit

Permalink
Change US/Eastern => America/New_York
Browse files Browse the repository at this point in the history
This fixes  Invalid Timezone: US/Eastern error

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052730
  • Loading branch information
pravi authored Feb 9, 2024
1 parent b66bb64 commit 6f834af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/backend/shared_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def create_job(opts = {})
end

it 'reserves jobs scheduled for the past when time zones are involved' do
Time.zone = 'US/Eastern'
Time.zone = 'America/New_York'
job = create_job :run_at => described_class.db_time_now - 1.minute
expect(described_class.reserve(worker)).to eq(job)
end
Expand Down

0 comments on commit 6f834af

Please sign in to comment.