Skip to content

Commit 33f046a

Browse files
committed
Merge branch 'Pepan-fix-convert-result-time'
2 parents d97bda2 + 87d40e7 commit 33f046a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/que/connection.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ def convert_params(params)
152152
},
153153

154154
# Timestamp with time zone
155-
1184 => Time.method(:parse),
155+
1184 => -> (value) {
156+
return value if value.is_a? Time
157+
Time.parse value if value.is_a? String
158+
}
156159
}
157160

158161
# JSON, JSONB

0 commit comments

Comments
 (0)