]> git.koha-community.org Git - koha.git/commit
Bug 36567: Get rid of Datetime warning in Circulation.t and dateexpiry.t
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Wed, 10 Apr 2024 11:50:04 +0000 (14:50 +0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 3 May 2024 14:02:45 +0000 (16:02 +0200)
commitf5e9f9634fd0d3ea1d06ca24141cb10660a2cf66
treef0a7e0d142a4ee2a6abd2baedf35c12c19216157
parentf9effbfdb4a1221da4f05683a57946de01d0aa25
Bug 36567: Get rid of Datetime warning in Circulation.t and dateexpiry.t

Running either t/db_dependent/Circulation.t or t/db_dependent/Circulation/dateexpiry.t
cause following error to be dispalyed:

You are creating a DateTime object with a far future year (9999) and a time
zone (Europe/Helsinki). If the time zone you specified has future DST changes
this will be very slow.

Smallest allowed value is 4999, so we need to use that rather than 9999 in tests.

To test prove t/db_dependent/Circulation.t and t/db_dependent/Circulation/dateexpiry.t.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
t/db_dependent/Circulation.t
t/db_dependent/Circulation/dateexpiry.t