]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 28 May 2024 21:29:58 +0000 (21:29 +0000)
commit188ff949df92fbbecb574da2ae6ba2609637108d
treec531a5f4262d82de078ccd3a251387b2dd91077a
parent103c50172f0a18f3f002c7009709a55bc39d8774
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>
(cherry picked from commit f5e9f9634fd0d3ea1d06ca24141cb10660a2cf66)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 6302ec6200fb26f38edbc1a5e127431108dc54a9)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/Circulation.t
t/db_dependent/Circulation/dateexpiry.t