mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 22:14:39 +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
9 lines
242 B
Ruby
9 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
|