GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

MEAP v11, wrong index name in BootStrap in calls to Date.updated() #44

Closed marcpa00 closed 10 years ago

marcpa00 commented 11 years ago

BootStrap.createSampleData() changes the dateCreated values of Post instances using GDK Date.updated(), but it uses an invalid index name, dayOfMonth, which is silently ignored. Must use date (string) or Calendar.DAY_OF_MONTH according to http://groovy.codehaus.org/groovy-jdk/java/util/Calendar.html#set(java.util.Map)