Skip to content

Instantly share code, notes, and snippets.

@dobryakov
Created January 18, 2016 11:15
Show Gist options
  • Save dobryakov/ceff6ec3cfecd79decdc to your computer and use it in GitHub Desktop.
Save dobryakov/ceff6ec3cfecd79decdc to your computer and use it in GitHub Desktop.
rails time_zone_select with full timezone names (TZInfo)
<%= time_zone_select(:user, :time_zone, nil, { model: TZInfo::Timezone, default: 'Europe/Moscow' } ) %>
@jtomasrl
Copy link

Is there a way to show ActiveSupport::TimeZone but save as TZInfo::Timezone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment