Sha256: 581cefeffa95b561ae7f4a2763ab6d1a65adc3943bda41ec3296292ab97bfb0f

Contents?: true

Size: 308 Bytes

Versions: 137

Compression:

Stored size: 308 Bytes

Contents

module Effective
  module FormInputs
    class TimeZoneSelect < Select

      def self.time_zone_collection
        date = Time.zone.now

        ActiveSupport::TimeZone.all.map do |tz|
          ["(UTC #{date.in_time_zone(tz).strftime('%:z')}) #{tz.name}", tz.name]
        end
      end

    end
  end
end

Version data entries

137 entries across 137 versions & 1 rubygems

Version Path
effective_bootstrap-0.5.11 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.10 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.9 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.8 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.7 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.6 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.5 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.4 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.3 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.2 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.1 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.5.0 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.8 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.7 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.6 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.5 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.4 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.3 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.2 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.4.1 app/models/effective/form_inputs/time_zone_select.rb