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

            Bug ID: 44066
           Summary: DBix::Class::Storage::DBI warns "DateTime objects
                    passed to search() are not supported properly"
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Here is the full warning (seen under 25.11 ane before under 24.11):

[2026/11/10 12:23:09] [WARN] DBIx::Class::Storage::DBI::_gen_sql_bind():
DateTime objects passed to search() are not supported properly
(InflateColumn::DateTime formats and settings are not respected.) See "..
format a DateTime object for searching?" in DBIx::Class::Manual::FAQ. To
disable this warning for good set $ENV{DBIC_DT_SEARCH_OK} to true at
/usr/share/koha/Koha/Objects.pm line 583

Note that the warn is introduced in DBIx::Class version 0.08271.
And both Debian 12 and Debian 13 have a version higher than that.

Objects line 583 (lineno from 25.11) is part of the AUTOLOAD sub:
my $r = eval { $self->_resultset->$method(@params) };
Apparently, the method is here search, but I could not exactly find the source.
>From the logs I suspect that it is either a POST on suggestion/suggestion.pl or
a GET on members/purchase-suggestions.pl.
The latter only contains one search and I dont see date(time) there.
But suggestion/suggestion.pl includes this line in the cud-save part where
$suggestion_only may contain multiple dates:
    my $suggestions = Koha::Suggestions->search_limited($suggestion_only);
So this could be the cause.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to