search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Events rendering 1 day back

Asked by Aaron Coppock
11 years ago.

Not sure what I am doing wrong, however whenever I add an event to the calendar, at random, some events will render a day back,

i.e. event on June 5th at 10:00 is the data sent in, it will render in the June 4th at 10:00 AM. This wasnt happening in the Lite version I was using

Comment posted by Aaron Coppock
11 years ago.

Additional info, seems tied into moving months, if the even was rendered in the currently showing month, its fine, but if the event is for the next month, when that month loads, the events are rendered off

Answer posted by Dan Letecky [DayPilot]
11 years ago.

Please try using DateTime.Date when setting the new StartDate value, e.g.

protected override void OnCommand(CommandArgs e)
{
    switch (e.Command)
    {
        case "navigate":
            DateTime start = (DateTime)e.Data["start"];
            StartDate = start.Date;
            Update(CallBackUpdateType.Full);
            break;
    }
}

At this moment the StartDate value is not adjusted to "00:00" time automatically. This will probably be changed in the next release so it doesn't cause confusion.

Comment posted by Dan Letecky [DayPilot]
11 years ago.

This turned out to be a bug related to incorrect handling of WeekStarts property.

It's now fixed in 7.3 SP4:

http://mvc.daypilot.org/daypilot-pro-for-asp-net-mvc-7-3-sp4/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.