From: erickson Date: Mon, 12 Oct 2009 15:04:50 +0000 (+0000) Subject: jscalendar doesn't like the DoB date format. trim the DoB to just the date part X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8ceeeda736e3fec4dfab3fd308d677d660be9f4d;p=working%2FEvergreen.git jscalendar doesn't like the DoB date format. trim the DoB to just the date part git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@14358 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index 6d8306409f..67bc1cc95e 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -158,6 +158,9 @@ function uEditBuild() { patron = fetchFleshedUser(usr); if(!patron) patron = uEditNewPatron(); + + // jscalendar doesn't like the date format. trim the time data + if(patron.dob()) patron.dob( patron.dob().replace(/T.*/, '') ); uEditDraw( uEditFetchIdentTypes(),