Skip to content

Commit

Permalink
Merge pull request resque#348 from humancopy/master
Browse files Browse the repository at this point in the history
Fix NaN days ago for worker screens in web-ui
  • Loading branch information
defunkt committed Aug 17, 2011
2 parents cc135c8 + 298a7f5 commit e947af0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resque/failure/redis.rb
Expand Up @@ -5,7 +5,7 @@ module Failure
class Redis < Base
def save
data = {
:failed_at => Time.now.strftime("%Y/%m/%d %H:%M:%S"),
:failed_at => Time.now.strftime("%Y/%m/%d %H:%M:%S %Z"),
:payload => payload,
:exception => exception.class.to_s,
:error => exception.to_s,
Expand Down
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 %Z"),
:payload => job.payload
redis.set("worker:#{self}", data)
end
Expand Down

0 comments on commit e947af0

Please sign in to comment.