Skip to content

Commit 17dc019

Browse files
committed
Update application_controller.rb
1 parent fdb7bc2 commit 17dc019

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def search_by_field(table, field, value)
195195
)
196196
table.where("#{field} LIKE ?", value)
197197
else
198-
table.where("to_char(#{field}, 'mm yyyy') LIKE ?", value)
198+
table.where("to_char(#{field}, 'YYYY-MM-DD') LIKE ?", value)
199199
end
200200
else
201201
table.where("LOWER(#{field}) LIKE ?", value)

0 commit comments

Comments
 (0)