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