Skip to content

Commit e8747cb

Browse files
Sean PrashadAlireza Bashiri
authored andcommitted
Implement change() to convert to "2001-01-01" first
(cherry picked from commit da34d47)
1 parent 379d98d commit e8747cb

File tree

1 file changed

+1
-0
lines changed
  • activerecord/lib/active_record/connection_adapters/abstract

1 file changed

+1
-0
lines changed

activerecord/lib/active_record/connection_adapters/abstract/quoting.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def quoted_date(value)
130130
end
131131

132132
def quoted_time(value) # :nodoc:
133+
value = value.change(year: 2000, month: 1, day: 1)
133134
quoted_date(value).sub(/\A\d\d\d\d-\d\d-\d\d /, "")
134135
end
135136

0 commit comments

Comments
 (0)