lib/et-orbi.rb in et-orbi-1.0.7 vs lib/et-orbi.rb in et-orbi-1.0.8
- old
+ new
@@ -5,11 +5,11 @@
require 'tzinfo'
module EtOrbi
- VERSION = '1.0.7'
+ VERSION = '1.0.8'
#
# module methods
class << self
@@ -144,9 +144,10 @@
return o if o.is_a?(::TZInfo::Timezone)
return nil if o == nil
return local_tzone if o == :local
return ::TZInfo::Timezone.get('Zulu') if o == 'Z'
+ return o.tzinfo if o.respond_to?(:tzinfo)
o = to_offset(o) if o.is_a?(Numeric)
return nil unless o.is_a?(String)