]> git.evergreen-ils.org Git - Evergreen.git/commit
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:39:53 +0000 (15:39 -0500)
commit86c5da0b4da0cf20141ef774536a7f1723f3592b
treee4574b0d61f23b2a383f935842f15378c41a3dd1
parentf2ca2d7f9c79561a04f6ac1ae61bc6537f0acc65
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