diff --git a/lib/que/sql.rb b/lib/que/sql.rb index 9111b5c1..0327ea1b 100644 --- a/lib/que/sql.rb +++ b/lib/que/sql.rb @@ -60,7 +60,7 @@ module Que INSERT INTO que_jobs (queue, priority, run_at, job_class, args) VALUES - (coalesce($1, '')::text, coalesce($2, 100)::smallint, coalesce($3, 'now')::timestamptz, $4::text, coalesce($5, '[]')::json) + (coalesce($1, '')::text, coalesce($2, 100)::smallint, coalesce($3, now())::timestamptz, $4::text, coalesce($5, '[]')::json) RETURNING * }.freeze,