TimeOfDay.next(Calendar) can return time on same day rather than next day -------------------------------------------------------------------------
common.concepts.key: WICKET-595 common.concepts.url: https://issues.apache.org/jira/browse/WICKET-595 common.concepts.project: Wicket common.concepts.issuetype: Bug common.concepts.components: wicket Affects Versions: 1.3.0-beta1 issue.field.reporter: Jonathan Locke issue.field.priority: Minor common.concepts.fixfor: 1.3.0-beta2 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); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
