Skip to content

Commit 4fc8d47

Browse files
committed
Format time for workers to fix NaN days in web-ui
1 parent cc135c8 commit 4fc8d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def working_on(job)
381381
job.worker = self
382382
data = encode \
383383
:queue => job.queue,
384-
:run_at => Time.now.to_s,
384+
:run_at => Time.now.strftime("%Y/%m/%d %H:%M:%S"),
385385
:payload => job.payload
386386
redis.set("worker:#{self}", data)
387387
end

0 commit comments

Comments
 (0)