lib/rufus/scheduler/util.rb in rufus-scheduler-3.0.8 vs lib/rufus/scheduler/util.rb in rufus-scheduler-3.0.9

- old
+ new

@@ -44,10 +44,10 @@ def self.parse_in(o, opts={}) o.is_a?(String) ? parse_duration(o, opts) : o end - TZ_REGEX = /\b((?:[a-zA-Z][a-zA-z0-9\-+]+)(?:\/[a-zA-Z0-9\-+]+)?)\b/ + TZ_REGEX = /\b((?:[a-zA-Z][a-zA-z0-9\-+]+)(?:\/[a-zA-Z0-9_\-+]+)?)\b/ def self.parse_at(o, opts={}) return o if o.is_a?(Time)