Hi Dan,
Initialise the DayPilot controls
@Html.DayPilotCalendar("dpc", new DayPilot.Web.Mvc.DayPilotCalendarConfig
{
BackendUrl = Url.Content("~/MyRequests/Backend"),
TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "timeSelected(start, end)",
EventHeaderHeight = 0,
HeaderDateFormat = "dd-MM-yyyy",
CellHeight = 20,
CellDuration = 15,
EventArrangement = ArrangementType.SideBySide,
EventBubble = "bubble",
HeightSpec= HeightSpec.Fixed,
Height = 320
})
I have selected the 8 AM in DayPilot scheduler but in function it returns as
Start time:19.00 hr
End Time : 19.15 hr
function timeSelected(start, end) {
var lStart2 = new Date(Date.parse(start.d));
var endTime = new Date(Date.parse(end.d));
var startTime = lStart2;
even it taking local time zone it should return 8.00AM instead it is retruning 19.00 hr.
please let me know how can solve it.
i tried to upload snapshot not possible.