Files
discourse/spec/initializers/custom_timezones_spec.rb
Joffrey JAFFEUX 5474ea4c03 DEV: maps IST rails timezone to kolkata (#32896)
This commit ensures rails will recognise `IST` as a timezone. It will be
mapped to the standard timezone `Asia/Kolkata`.

Its technically not a standard, but it's used by many people so we are
adding it as a timezone in core.

/t/-/150799
2025-05-26 08:56:04 +02:00

10 lines
242 B
Ruby

# frozen_string_literal: true
RSpec.describe "Custom timezones initializer" do
it "maps IST to Asia/Kolkata" do
expect(ActiveSupport::TimeZone["IST"].tzinfo).to eq(
ActiveSupport::TimeZone["Asia/Kolkata"].tzinfo,
)
end
end