]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 24 May 2024 13:03:59 +0000 (15:03 +0200)
commit6302ec6200fb26f38edbc1a5e127431108dc54a9
treedc910338f21acfa21cc2a9ecac6f0965a237203f
parent28c5cd8615fb4551443d27793b67429f0807abf8
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>
t/db_dependent/Circulation.t
t/db_dependent/Circulation/dateexpiry.t