diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html index 5bd5b586f5..453e11c6bb 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html @@ -321,7 +321,7 @@

Preferred Name

fieldName="au-dob-input" [noMaxWidth]="true" [initialYmd]="patron.dob()" - (onChangeAsIso)=" + (onChangeAsYmd)=" fieldValueChange(null, null, 'dob', $event); afterFieldChange(null, null, 'dob')" [required]="fieldRequired('au.dob')"> 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 2453460b29..828e3995b0 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 @@ -1158,7 +1158,7 @@ angular.module('egCoreMod') patron.expire_date(patron.expire_date().toISOString()); patron.profile(patron.profile().id()); if (patron.dob()) - patron.dob(patron.dob().toISOString().replace(/T.*/,'')); + patron.dob(moment(patron.dob()).format('YYYY-MM-DD')); if (patron.ident_type()) patron.ident_type(patron.ident_type().id()); if (patron.locale())