Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cast the db_time_now to a date time.

  • Loading branch information...
commit b6b93f229227251e25e5e378c94b10c7c5f413c8 1 parent 2f2e876
Brian Ryckbost bryckbost authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/delayed/backend/data_mapper.rb
2  lib/delayed/backend/data_mapper.rb
View
@@ -22,7 +22,7 @@ class Job
before :save, :set_default_run_at
def self.db_time_now
- Time.now.utc
+ Time.now.utc.to_datetime
end
def self.find_available(worker_name, limit = 5, max_run_time = Worker.max_run_time)
Please sign in to comment.
Something went wrong with that request. Please try again.