Skip to content

Commit df0289b

Browse files
committed
Replacing obsolete time.succ with time + 1.
Time#succ is obsolete since 1.9.2 for time is not a discrete value.
1 parent e9e209f commit df0289b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oai/provider/model/activerecord_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def sql_conditions(opts)
142142
if opts.has_key?(:until)
143143
# Handle databases which store fractions of a second by rounding up
144144
sql << "#{timestamp_field} < :until"
145-
esc_values[:until] = parse_to_local(opts[:until]) { |t| t.succ }
145+
esc_values[:until] = parse_to_local(opts[:until]) { |t| t + 1 }
146146
end
147147
if opts.has_key?(:set)
148148
sql << "set = :set"

0 commit comments

Comments
 (0)