MMBase

DateSupport is returning wrong dayOfMonth

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.7.0
  • Component/s: Utils
  • Description:
    Hide
    original bugid: #6402
    The DateSupport code has been changed to use the Calendar instead of the Date class. But Date.getDay return the day of the month from 0 till 6. Calendar.DAY_OF_WEEK returns the day of the month from 1 till 7. So the DateSupport class returns the wrong day.


    fixed
    Show
    original bugid: #6402 The DateSupport code has been changed to use the Calendar instead of the Date class. But Date.getDay return the day of the month from 0 till 6. Calendar.DAY_OF_WEEK returns the day of the month from 1 till 7. So the DateSupport class returns the wrong day. fixed

Activity

Hide
Rob Vermeulen added a comment - 2004-03-22 17:55
DateSupport is returning wrong dayOfMonth
The DateSupport code has been changed to use the Calendar instead of the Date class. But Date.getDay return the day of the month from 0 till 6. Calendar.DAY_OF_WEEK returns the day of the month from 1 till 7. So the DateSupport class returns the wrong day.


Show
Rob Vermeulen added a comment - 2004-03-22 17:55 DateSupport is returning wrong dayOfMonth The DateSupport code has been changed to use the Calendar instead of the Date class. But Date.getDay return the day of the month from 0 till 6. Calendar.DAY_OF_WEEK returns the day of the month from 1 till 7. So the DateSupport class returns the wrong day.

People

Dates

  • Created:
    2004-03-22 17:55
    Updated:
    2006-11-24 13:36
    Resolved:
    2006-11-24 13:36