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.47 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.46 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.45 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.44 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.43 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.42 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.41 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.40 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.39 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.38 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.37 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.36 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.35 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.34 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.33 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.32 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.31 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.30 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.29 app/models/effective/form_inputs/time_zone_select.rb
effective_bootstrap-0.9.28 app/models/effective/form_inputs/time_zone_select.rb