discourse/config/initializers/100-custom-timezones.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

3 lines
88 B
Ruby

# frozen_string_literal: true
ActiveSupport::TimeZone::MAPPING["IST"] = "Asia/Kolkata"