From 6f834aff6b8331e1e445631dee6bf1acd2c046ee Mon Sep 17 00:00:00 2001 From: Pirate Praveen Arimbrathodiyil Date: Fri, 9 Feb 2024 20:28:13 +0530 Subject: [PATCH] Change US/Eastern => America/New_York This fixes Invalid Timezone: US/Eastern error https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052730 --- lib/delayed/backend/shared_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delayed/backend/shared_spec.rb b/lib/delayed/backend/shared_spec.rb index 39f497670..2774e7dc0 100644 --- a/lib/delayed/backend/shared_spec.rb +++ b/lib/delayed/backend/shared_spec.rb @@ -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