mirror of
https://github.com/discourse/discourse.git
synced 2025-06-25 14:21:38 +08:00

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
10 lines
242 B
Ruby
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
|