lib/rocket_job/rocket_job.rb in rocketjob-6.1.1 vs lib/rocket_job/rocket_job.rb in rocketjob-6.2.0

- old
+ new

@@ -26,14 +26,14 @@ # Returns a human readable duration from the supplied [Float] number of seconds def self.seconds_as_duration(seconds) return nil unless seconds if seconds >= 86_400.0 # 1 day - "#{(seconds / 86_400).to_i}d #{Time.at(seconds).strftime('%-Hh %-Mm')}" + "#{(seconds / 86_400).to_i}d #{Time.at(seconds).utc.strftime('%-Hh %-Mm')}" elsif seconds >= 3600.0 # 1 hour - Time.at(seconds).strftime("%-Hh %-Mm") + Time.at(seconds).utc.strftime("%-Hh %-Mm") elsif seconds >= 60.0 # 1 minute - Time.at(seconds).strftime("%-Mm %-Ss") + Time.at(seconds).utc.strftime("%-Mm %-Ss") elsif seconds >= 1.0 # 1 second format("%.3fs", seconds) else duration = seconds * 1000 if defined? JRuby