Open rafaehlers opened 5 years ago
This is tricky. Search all doesn't do any conversion and sends the search string into the database as is. So the query looks something like:
SELECT * FROM gf_entry_meta WHERE meta_value LIKE '%09/12/2018%'. We can't really just convert it into 2018-12-09 because it will fail with searches in text areas for example, where they wrote "09/12/2018" by hand, so "2018-12-09" won't match any more.
What we could do is perhaps detect a date and add an additional query variant. So the query becomes like SELECT * FROM gf_entry_meta WHERE meta_value LIKE '%09/12/2018%' OR meta_value LIKE '%2018-12-09%'. This may yield more results than expected but may actually work.
What are your thoughts on this @zackkatz?
This option:
...doesn't help:
... to search dates:
Tested on GV 2.2.4
┆Issue is synchronized with this Asana task