From 636812ad7cba1f3aca1a5038485c4d4a91736844 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 9 Mar 2016 14:01:31 -0500 Subject: [PATCH] LP#1554714 Patron reg DoB parse month bug repair Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index 0e01761006..b0b3486669 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -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; } -- 2.11.0