Ignore:
Timestamp:
Dec 2, 2009, 5:26:54 AM (14 years ago)
Author:
gav
Message:

Make date calculations and formatting more groovy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/TaskModification.groovy

    r187 r210  
    1 import java.text.SimpleDateFormat
    2 
    31class TaskModification {
    42    Person person
     
    1917
    2018    String toString() {
    21         def date = new SimpleDateFormat("EEE, dd-MMM-yyyy").format(this.date)
    22         "${taskModificationType} on ${date} by ${person}."
     19        "${taskModificationType} on ${date.format('EEE, dd-MMM-yyyy')} by ${person}."
    2320    }
    2421}
Note: See TracChangeset for help on using the changeset viewer.