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)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 30 Dec 2015 02:45:09 +0000 (02:45 +0000)
commitaf7fb9cd48cdb47329e7b9bbe651e856e017aa13
tree3f04853a9ea6b0af266bf043477695e62625e27c
parent558f291465d60c082c0e9a4a15eb7ed87a3e3fde
 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>
tools/modborrowers.pl