From 871ad843c6f9292692cf72d24ad6e3364a983d5c Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 18 Jul 2006 15:52:09 +0000 Subject: [PATCH] datestamps instead of dates git-svn-id: svn://svn.open-ils.org/ILS/trunk@5060 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js index 3ad8f3f9d9..bf94dcc8f2 100644 --- a/Open-ILS/xul/staff_client/server/patron/util.js +++ b/Open-ILS/xul/staff_client/server/patron/util.js @@ -450,7 +450,7 @@ patron.util.set_penalty_css = function(patron) { if (expire < now) addCSSClass(document.documentElement,'PATRON_EXPIRED'); - var age_parts = patron.dob().split('-'); + var age_parts = patron.dob().substr(0,10).split('-'); age_parts[1] = age_parts[1] - 1; var born = new Date(); -- 2.11.0