Changeset 210 for trunk/grails-app/domain
- Timestamp:
- Dec 2, 2009, 5:26:54 AM (15 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/InventoryMovement.groovy
r177 r210 1 import java.text.SimpleDateFormat2 3 1 class InventoryMovement { 4 2 InventoryItem inventoryItem … … 19 17 20 18 String toString() { 21 def date = new SimpleDateFormat("EEE, dd-MMM-yyyy").format(this.date) 22 "${this.quantity} ${inventoryMovementType.name} on ${date}" 19 "${this.quantity} ${inventoryMovementType.name} on ${date.format('EEE, dd-MMM-yyyy')}" 23 20 } 24 21 } -
trunk/grails-app/domain/TaskModification.groovy
r187 r210 1 import java.text.SimpleDateFormat2 3 1 class TaskModification { 4 2 Person person … … 19 17 20 18 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}." 23 20 } 24 21 } -
trunk/grails-app/domain/TaskRecurringSchedule.groovy
r199 r210 1 1 import org.codehaus.groovy.runtime.TimeCategory 2 // the above will be deprecated and replaced by: groovy.time.TimeCategory 2 3 3 4 class TaskRecurringSchedule {
Note: See TracChangeset
for help on using the changeset viewer.