]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 Nov 2019 17:26:24 +0000 (17:26 +0000)
commit549a09c52178937af28cc11c5bfa7f00cbced1b5
tree5efdcd4eb3dcbf79777bfbe973410a8af61751df
parentc4466e7d714d32808ee2e553320431005ec7cc69
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>
t/db_dependent/Circulation.t