]> git.koha-community.org Git - koha.git/commit
Bug 23234: Mock DateTime->now using the time zone
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 24 Oct 2019 10:29:23 +0000 (12:29 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 15 Nov 2019 09:19:45 +0000 (10:19 +0100)
commit33ea628801f5d82029e38c8a7a4e415fd8a5f7d1
treebc8d7cbc21c35ee772299dcfb41537d5c4020cc2
parent73cf79940707ac9fcf74f5ea43e7711f058305f5
Bug 23234: Mock DateTime->now using the time zone

The timezone of the two dt was different, one was UTC, the other one was
my local one.
When we mocked DateTime->now we did not use the time zone, we must use
dt_from_string instead

Test plan:
Make sure your environment has a different time zone than UTC
`prove t/db_dependent/Circulation.t` should fail without this patch

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 549a09c52178937af28cc11c5bfa7f00cbced1b5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Circulation.t