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.9.27 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.26 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.25 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.24 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.23 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.22 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.21 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.20 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.19 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.18 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.17 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.16 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.15 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.14 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.13 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.12 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.11 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.10 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.9 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.8 app/models/effective/form_inputs/time_zone_select.rb