Sha256: 132d85582c22675898bb4768ac14c551bf69063bc81534e58435cea657ca0fd2
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
require 'tzinfo' require "active_support/core_ext" require "time_zone_ext/version" module TimeZoneExt def strptime(date, format) if format =~ /%z/i Time.strptime(date, format).in_time_zone else Time.strptime("#{date} zone#{name}", "#{format} zone%z").in_time_zone end end end ActiveSupport::TimeZone.send :include, TimeZoneExt
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
time_zone_ext-0.0.1 | lib/time_zone_ext.rb |