Skip to content

Commit

Permalink
Format time for workers to fix NaN days in web-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
humancopy committed Aug 11, 2011
1 parent cc135c8 commit 4fc8d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Expand Up @@ -381,7 +381,7 @@ def working_on(job)
job.worker = self
data = encode \
:queue => job.queue,
:run_at => Time.now.to_s,
:run_at => Time.now.strftime("%Y/%m/%d %H:%M:%S"),
:payload => job.payload
redis.set("worker:#{self}", data)
end
Expand Down

0 comments on commit 4fc8d47

Please sign in to comment.