datestamps instead of dates
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Jul 2006 15:52:09 +0000 (15:52 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Jul 2006 15:52:09 +0000 (15:52 +0000)
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

index 3ad8f3f..bf94dcc 100644 (file)
@@ -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();