Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-595

TimeOfDay.next(Calendar) can return time on same day rather than next day

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket
    • None

    Description

      Currently code does:

      calendar.add(Calendar.DATE, 1);
      return Time.valueOf(calendar, this);

      Because Time.valueOf(Calendar, TimeOfDay) always returns the time on the same day, the add is ignored. Instead this code should be the time of day today plus one day like this:

      return Time.valueOf(calendar, this).add(Duration.ONE_DAY);

      Attachments

        Activity

          People

            jonathan.locke Jonathan Locke
            jonl Jonathan Locke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: