[Koha-bugs] [Bug 28585] Cannot search on date fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 21 17:22:04 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28585

--- Comment #28 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
(In reply to Jonathan Druart from comment #22)
> Can you also remind me why we are not using Koha::DateUtils instead of $dtf?
> Is that because of bug 24850? If so, shouldn't we add a comment about
> replacing the line when 24850 will be pushed?

It's pretty standard practice to use the DateTime parser returned by DBI for
the connected database to format DateTime objects for SQL... I'm not even sure
what function does the same in DateUtils?

Personally, I've used the dtf method all over the codebase.. it's what I reach
for first when inputting a query.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list