It appears the Calendar does not support events that span over midnight. When I add such events, they are rendered incorrectly.
I guess the rather unpleasant workaround is to chop events up into two?
Code:
Calendar calendar = new Calendar(); Date today = new Date(System.currentTimeMillis()); long day = 1000L * 60L * 60L * 24L; Date tomorrow = new Date(System.currentTimeMillis() + day); calendar.addEvent(today, tomorrow, "Overnight event", "midnight joker");
Comment