[Koha-bugs] [Bug 13242] Slow checkin for patrons restricted indefinitely

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 14 16:35:49 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13242

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |veron at veron.ch

--- Comment #17 from Marc Véron <veron at veron.ch> ---
I tested with and without patch and had the same problem (about 20 sec for
checking in an item for an undefinitly restricted patron.

With patch, I played around with the following line:

return DateTime::Format::DateParse->parse_datetime($date_string);

Same result without and with time zone parameter (e.g. 'floating' or '+0000').

I also tested and had the same result using the following code (with and
without time_zone variants)

        return  DateTime->new (
                 year=> 9999,
                 month=> 12,
                 day => 31,
                 hour => 0,
                 minute => 0,
                 second => 0,
                 time_zone => '+0000',
                );

The only thing that reduced time was to change the year e.g. to 2999 (for both
methods).

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


More information about the Koha-bugs mailing list