lib/rufus/scheduler/zotime.rb in rufus-scheduler-3.3.3 vs lib/rufus/scheduler/zotime.rb in rufus-scheduler-3.3.4

- old
+ new

@@ -39,10 +39,13 @@ @zone = self.class.get_tzone(zone || :current) fail ArgumentError.new( "cannot determine timezone from #{zone.inspect}" + " (etz:#{ENV['TZ'].inspect},tnz:#{Time.now.zone.inspect}," + - "tzid:#{defined?(TZInfo::Data).inspect})" + "tzid:#{defined?(TZInfo::Data).inspect})\n" + + "Try setting `ENV['TZ'] = 'Continent/City'` in your script " + + "(see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)" + + (defined?(TZInfo::Data) ? '' : " and adding 'tzinfo-data' to your gems") ) unless @zone @time = nil # cache for #to_time result end