Skip to content

Commit

Permalink
Merge pull request huginn#3485 from jjeffers/3483_missing_tz_identifiers
Browse files Browse the repository at this point in the history
huginn#3483 - Attempts to fix an issue with missing Rails timezone in the ActiveSupport TimeZone mapping.
  • Loading branch information
knu authored Jan 14, 2025
2 parents a8b0802 + 1e70542 commit c3c2a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/huginn_scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ class HuginnScheduler < LongRunnable::Worker
}

def setup
tzinfo_friendly_timezone = ActiveSupport::TimeZone::MAPPING[ENV['TIMEZONE'].presence || "Pacific Time (US & Canada)"]
Time.zone = ENV['TIMEZONE'].presence || 'Pacific Time (US & Canada)'
tzinfo_friendly_timezone = Time.zone.tzinfo.identifier

# Schedule event propagation.
every '1m' do
Expand Down

0 comments on commit c3c2a62

Please sign in to comment.