Ignore:
Timestamp:
May 31, 2010, 1:54:53 PM (15 years ago)
Author:
gav
Message:

Small refator of DateUtilService.
New plusMonth() replaces getNextMonth and getPreviousMonth().
Clarify getDayFromDate() to getDayOfMonthFromDate().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r552 r553  
    809809        result.today.year = dateUtilService.getYearFromDate(result.today.date)
    810810        result.nextMonth = [:]
    811         result.nextMonth.date = dateUtilService.getNextMonth(showDate)
     811        result.nextMonth.date = dateUtilService.plusMonth(showDate)
    812812        result.nextMonth.month = dateUtilService.getMonthFromDate(result.nextMonth.date)
    813813        result.nextMonth.year = dateUtilService.getYearFromDate(result.nextMonth.date)
    814814        result.previousMonth =  [:]
    815         result.previousMonth.date = dateUtilService.getPreviousMonth(showDate)
     815        result.previousMonth.date = dateUtilService.plusMonth(showDate, -1)
    816816        result.previousMonth.month = dateUtilService.getMonthFromDate(result.previousMonth.date)
    817817        result.previousMonth.year = dateUtilService.getYearFromDate(result.previousMonth.date)
Note: See TracChangeset for help on using the changeset viewer.