Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List of Ruby on Rails Timezone names and their alias
["Africa/Algiers", "West Central Africa"],
["Africa/Cairo", "Cairo"],
["Africa/Casablanca", "Casablanca"],
["Africa/Harare", "Harare"],
["Africa/Johannesburg", "Pretoria"],
["Africa/Monrovia", "Monrovia"],
["Africa/Nairobi", "Nairobi"],
["America/Argentina/Buenos_Aires", "Buenos Aires"],
["America/Bogota", "Bogota"],
["America/Caracas", "Caracas"],
["America/Chicago", "Central Time (US & Canada)"],
["America/Chihuahua", "Chihuahua"],
["America/Denver", "Mountain Time (US & Canada)"],
["America/Godthab", "Greenland"],
["America/Guatemala", "Central America"],
["America/Guyana", "Georgetown"],
["America/Halifax", "Atlantic Time (Canada)"],
["America/Indiana/Indianapolis", "Indiana (East)"],
["America/Juneau", "Alaska"],
["America/La_Paz", "La Paz"],
["America/Lima", "Quito"],
["America/Los_Angeles", "Pacific Time (US & Canada)"],
["America/Mazatlan", "Mazatlan"],
["America/Mexico_City", "Mexico City"],
["America/Monterrey", "Monterrey"],
["America/Montevideo", "Montevideo"],
["America/New_York", "Eastern Time (US & Canada)"],
["America/Phoenix", "Arizona"],
["America/Regina", "Saskatchewan"],
["America/Santiago", "Santiago"],
["America/Sao_Paulo", "Brasilia"],
["America/St_Johns", "Newfoundland"],
["America/Tijuana", "Tijuana"],
["Asia/Almaty", "Almaty"],
["Asia/Baghdad", "Baghdad"],
["Asia/Baku", "Baku"],
["Asia/Bangkok", "Hanoi"],
["Asia/Chongqing", "Chongqing"],
["Asia/Colombo", "Sri Jayawardenepura"],
["Asia/Dhaka", "Dhaka"],
["Asia/Hong_Kong", "Hong Kong"],
["Asia/Irkutsk", "Irkutsk"],
["Asia/Jakarta", "Jakarta"],
["Asia/Jerusalem", "Jerusalem"],
["Asia/Kabul", "Kabul"],
["Asia/Kamchatka", "Kamchatka"],
["Asia/Karachi", "Karachi"],
["Asia/Kathmandu", "Kathmandu"],
["Asia/Kolkata", "New Delhi"],
["Asia/Krasnoyarsk", "Krasnoyarsk"],
["Asia/Kuala_Lumpur", "Kuala Lumpur"],
["Asia/Kuwait", "Kuwait"],
["Asia/Magadan", "Magadan"],
["Asia/Muscat", "Muscat"],
["Asia/Novosibirsk", "Novosibirsk"],
["Asia/Rangoon", "Rangoon"],
["Asia/Riyadh", "Riyadh"],
["Asia/Seoul", "Seoul"],
["Asia/Shanghai", "Beijing"],
["Asia/Singapore", "Singapore"],
["Asia/Taipei", "Taipei"],
["Asia/Tashkent", "Tashkent"],
["Asia/Tbilisi", "Tbilisi"],
["Asia/Tehran", "Tehran"],
["Asia/Tokyo", "Tokyo"],
["Asia/Ulaanbaatar", "Ulaanbaatar"],
["Asia/Urumqi", "Urumqi"],
["Asia/Vladivostok", "Vladivostok"],
["Asia/Yakutsk", "Yakutsk"],
["Asia/Yekaterinburg", "Ekaterinburg"],
["Asia/Yerevan", "Yerevan"],
["Atlantic/Azores", "Azores"],
["Atlantic/Cape_Verde", "Cape Verde Is."],
["Atlantic/South_Georgia", "Mid-Atlantic"],
["Australia/Adelaide", "Adelaide"],
["Australia/Brisbane", "Brisbane"],
["Australia/Darwin", "Darwin"],
["Australia/Hobart", "Hobart"],
["Australia/Melbourne", "Melbourne"],
["Australia/Perth", "Perth"],
["Australia/Sydney", "Sydney"],
["Etc/UTC", "UTC"],
["Europe/Amsterdam", "Amsterdam"],
["Europe/Athens", "Athens"],
["Europe/Belgrade", "Belgrade"],
["Europe/Berlin", "Bern"],
["Europe/Bratislava", "Bratislava"],
["Europe/Brussels", "Brussels"],
["Europe/Bucharest", "Bucharest"],
["Europe/Budapest", "Budapest"],
["Europe/Copenhagen", "Copenhagen"],
["Europe/Dublin", "Dublin"],
["Europe/Helsinki", "Helsinki"],
["Europe/Istanbul", "Istanbul"],
["Europe/Kiev", "Kyiv"],
["Europe/Lisbon", "Lisbon"],
["Europe/Ljubljana", "Ljubljana"],
["Europe/London", "London"],
["Europe/Madrid", "Madrid"],
["Europe/Minsk", "Minsk"],
["Europe/Moscow", "Volgograd"],
["Europe/Paris", "Paris"],
["Europe/Prague", "Prague"],
["Europe/Riga", "Riga"],
["Europe/Rome", "Rome"],
["Europe/Sarajevo", "Sarajevo"],
["Europe/Skopje", "Skopje"],
["Europe/Sofia", "Sofia"],
["Europe/Stockholm", "Stockholm"],
["Europe/Tallinn", "Tallinn"],
["Europe/Vienna", "Vienna"],
["Europe/Vilnius", "Vilnius"],
["Europe/Warsaw", "Warsaw"],
["Europe/Zagreb", "Zagreb"],
["Pacific/Apia", "Samoa"],
["Pacific/Auckland", "Wellington"],
["Pacific/Chatham", "Chatham Is."],
["Pacific/Fakaofo", "Tokelau Is."],
["Pacific/Fiji", "Fiji"],
["Pacific/Guadalcanal", "Solomon Is."],
["Pacific/Guam", "Guam"],
["Pacific/Honolulu", "Hawaii"],
["Pacific/Majuro", "Marshall Is."],
["Pacific/Midway", "Midway Island"],
["Pacific/Noumea", "New Caledonia"],
["Pacific/Pago_Pago", "American Samoa"],
["Pacific/Port_Moresby", "Port Moresby"],
["Pacific/Tongatapu", "Nuku'alofa"]
@nlinn

This comment has been minimized.

Copy link

@nlinn nlinn commented Feb 18, 2020

I stumpled upon this old gist and to me it looks like there's an error: line 86 ["Europe/Berlin", "Bern"] ... should be "Berlin", I guess. (Bern shares the same timezone)

@dlcmh

This comment has been minimized.

Copy link

@dlcmh dlcmh commented Apr 18, 2020

In rails console, run ActiveSupport::TimeZone::MAPPING to get the list (reference)

@eikes

This comment has been minimized.

Copy link
Owner Author

@eikes eikes commented Apr 18, 2020

rake time:zones

The Bern thing comes from an old mapping I guess:

rails/rails@7de7f21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.