Skip to content

Instantly share code, notes, and snippets.

@jjb jjb/
Last active Jan 12, 2018

What would you like to do?
How to access the list of all timezones which are recognized by Rails

Time.find_zone! uses these two methods to look up strings:

  • ActiveSupport::TimeZone[time_zone]
  • TZInfo::Timezone.get(time_zone)

The lists they reference are these:

  • (150)
  • TZInfo::Timezone.all_identifiers (606)
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.