lib/et-orbi.rb in et-orbi-1.0.3 vs lib/et-orbi.rb in et-orbi-1.0.4

- old
+ new

@@ -5,11 +5,11 @@ require 'tzinfo' module EtOrbi - VERSION = '1.0.3' + VERSION = '1.0.4' # # module methods def self.now(zone=nil) @@ -86,13 +86,12 @@ ot end def self.get_tzone(o) -#p [ :gtz, o ] + return o if o.is_a?(::TZInfo::Timezone) return nil if o == nil return local_tzone if o == :local - return o if o.is_a?(::TZInfo::Timezone) return ::TZInfo::Timezone.get('Zulu') if o == 'Z' o = to_offset(o) if o.is_a?(Numeric) return nil unless o.is_a?(String)