]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/wot/AssuranceForm.java
Assurance form: display DoB
[gigi.git] / src / org / cacert / gigi / pages / wot / AssuranceForm.java
index d4d7f84bb32409eb77042bf96e55c4b6fad19cf0..b57f73c2cb8b7c4b8525c81390c0a2126de12c17 100644 (file)
@@ -26,15 +26,16 @@ public class AssuranceForm extends Form {
        public AssuranceForm(int assuree) {
                this.assuree = new User(assuree);
        }
+       SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
 
        @Override
        public void output(PrintWriter out, Language l, Map<String, Object> vars) {
                HashMap<String, Object> res = new HashMap<String, Object>();
                res.putAll(vars);
                res.put("name", assuree.getName());
+               res.put("dob", sdf.format(assuree.getDob()));
                templ.output(out, l, res);
        }
-       SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-dd");
 
        @Override
        public boolean submit(PrintWriter out, HttpServletRequest req) {