class ActiveSupport::TimeZone
def load_country_zones(code)
def load_country_zones(code) country = TZInfo::Country.get(code) country.zone_identifiers.flat_map do |tz_id| if MAPPING.value?(tz_id) MAPPING.inject([]) do |memo, (key, value)| memo << self[key] if value == tz_id memo end else create(tz_id, nil, TZInfo::Timezone.get(tz_id)) end end.sort! end