LP#1554714 Patron reg DoB parse month bug repair
authorBill Erickson <berickxx@gmail.com>
Wed, 9 Mar 2016 19:01:31 +0000 (14:01 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 22 Apr 2016 13:52:59 +0000 (09:52 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index 0e01761..b0b3486 100644 (file)
@@ -703,7 +703,7 @@ angular.module('egCoreMod')
         var parts = dob.split('-');
         var d = new Date(); // always local time zone, yay.
         d.setFullYear(parts[0]);
-        d.setMonth(parts[1]);
+        d.setMonth(parts[1] - 1);
         d.setDate(parts[2]);
         return d;
     }