Permalink
Browse files

Cast the db_time_now to a date time.

  • Loading branch information...
1 parent 2f2e876 commit b6b93f229227251e25e5e378c94b10c7c5f413c8 @bryckbost bryckbost committed Nov 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/backend/data_mapper.rb
@@ -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)

0 comments on commit b6b93f2

Please sign in to comment.