# File lib/et-orbi.rb, line 252 def extract_zone(str) s = str.dup zs = ZONES_OLSON .inject([]) { |a, z| i = s.index(z); next a unless i a << z s[i, z.length] = '' a } s.gsub!(ZONES_ISO8601) { |m| zs << m.strip; '' } #if zs.empty? zs = zs.sort_by { |z| str.index(z) } [ s.strip, zs.last ] end