Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Overnight Calendar Events

    It appears the Calendar does not support events that span over midnight. When I add such events, they are rendered incorrectly.

    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");
    I guess the rather unpleasant workaround is to chop events up into two?

    #2
    Yeah, chopping any midnight event into two fixes the day/week rendering problem, but causes problems elsewhere (as in there are now two events so the month view is screwy).

    Comment


      #3
      Already in the WishList:
      http://forums.smartclient.com/showthread.php?t=3528
      MichalG

      Comment

      Working...
      X