lib/sidekiq_unique_jobs/web/helpers.rb in sidekiq-unique-jobs-8.0.1 vs lib/sidekiq_unique_jobs/web/helpers.rb in sidekiq-unique-jobs-8.0.2
- old
+ new
@@ -144,9 +144,11 @@
# @param [Float, Integer, String, Time] time a representation of a timestamp
#
# @return [String] a html safe string with relative time information
#
def safe_relative_time(time)
+ return unless time
+
time = parse_time(time)
relative_time(time)
end