Sha256: aa900ebd5f7f8b9216d29eccaab3a7080886ac7bd7f5bb662e0f0fb682aec4b5

Contents?: true

Size: 227 Bytes

Versions: 253

Compression:

Stored size: 227 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/local_time_zone'

class Time
  class << self
    def required_zone
      zone || ::EacRubyUtils::LocalTimeZone.auto || raise('No zone set or discovered')
    end
  end
end

Version data entries

253 entries across 253 versions & 4 rubygems

Version Path
eac_ruby_utils-0.123.0 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.121.0 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.120.0 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.70.0 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb
eac_tools-0.69.1 sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb