LP#1516757: ensure that SIP2 returns DOB correctly
authorBill Erickson <berickxx@gmail.com>
Mon, 16 Nov 2015 19:48:23 +0000 (14:48 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 2 Mar 2016 20:40:02 +0000 (15:40 -0500)
commit188029b6a60e53c3a91d5374592ad04957dc5d74
tree4a0ea851af43012d5747772430e22eaf77a4d347
parent036ce850ba7b625077078137704001128a6de025
LP#1516757: ensure that SIP2 returns DOB correctly

Parse dates of birth using the local timezone to ensure that the date in
the database will match what is sent to SIP clients.  Otherwise, the
date will be parsed as UTC and may result in the DoB value being offset
by one day in the SIP response.

To test
-------
[1] Fire up a SIP client of some sort and retrieve a patron record;
    verify that the patron's date of birth is correct, and not
    offset by one day.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm