Changeset 882


Ignore:
Timestamp:
Sep 8, 2010, 5:32:19 PM (10 years ago)
Author:
duh
Message:
  • boostrap studies does some strange things when parsing the date?!?! Perform bootstrap, have a look at the subject page in the wizard and be afraid... be very afraid...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrapStudies.groovy

    r879 r882  
    421421                        )
    422422                        .setFieldValue("Gender", (Math.random() > 0.5) ? "Male" : "Female")
    423                         .setFieldValue("DOB", new java.text.SimpleDateFormat("dd-mm-yy").parse("01-02-19" + (10 + (int) (Math.random() * 80))))
     423                        //.setFieldValue("DOB", new java.text.SimpleDateFormat("dd-mm-yy").parse("01-02-19" + (10 + (int) (Math.random() * 80))))
     424                        .setFieldValue("DOB", new Date().parse("dd/mm/yyyy", ((10 + (int) Math.random() * 18) + "/0" + (1 + (int) (Math.random() * 8)) + "/19" + (10 + (int) (Math.random() * 80))) ))
    424425                        .setFieldValue("Age", 30)
    425426                        .setFieldValue("Height", Math.random() * 2F)
Note: See TracChangeset for help on using the changeset viewer.