Skip to content

Commit

Permalink
Fix when enqueue_at is string for some reason. Fixes sidekiq#1949
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Sep 16, 2014
1 parent 5d32702 commit b13c80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def jid
end

def enqueued_at
Time.at(@item['enqueued_at'] || 0).utc
Time.at(@item['enqueued_at'].to_f).utc
end

def queue
Expand Down

0 comments on commit b13c80b

Please sign in to comment.