Bug 15332: Sent DateTime object to DBIx::Class, not formatted dates
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Dec 2015 15:01:15 +0000 (15:01 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Thu, 31 Dec 2015 16:56:00 +0000 (17:56 +0100)
commite491ba33c888a1f0271ddb9c5f48a022d421b0c3
tree206049a41032fa91e038c88e9931eab1d52fdde1
parentc9b64dc5ecb92659227c707a53ceabab9ec0c5c3
 Bug 15332: Sent DateTime object to DBIx::Class, not formatted dates

If formatted dates are sent to DBIx::Class on update/insert, the date
will be set as 0000-00-00 (except if the format is yyyy-mm-dd).

Test plan:
Use the batch patron modification tools to update the dateenrolled or
dateexpiry values for at least 1 patron.
Without this patch, the modified value will be updated to 0000-00-00,
with this patch, the correct value will be set.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit af7fb9cd48cdb47329e7b9bbe651e856e017aa13)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit d5fd02e4a17383e984c31e427dc2c64ce4726b51)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
tools/modborrowers.pl