Skip to content

Commit

Permalink
Use local time since DM ignores timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 27, 2010
1 parent dd81b03 commit 6329fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/backend/data_mapper.rb
Expand Up @@ -38,7 +38,7 @@ class Job
property :last_error, String

def self.db_time_now
Time.now.utc
Time.now
end

def self.find_available(worker_name, limit = 5, max_run_time = Worker.max_run_time)
Expand Down

0 comments on commit 6329fcb

Please sign in to comment.