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

Scheduler date problem

Related article: ASP.NET Scheduler Tutorial
Asked by Alessio
4 years ago.

Hi Guys i've a problem with the date (i believe it is a UTC problem).

So I'm doing a room booking app and trying daypilot as a componet to create a planner webform, everything work fine but when i run the planning the start date and end date are different then the sqlserver reservation date (1 day )

I tried several ways to fix the problem but nothing ... please help need , i want to purchase the library but i need to check if it's the right component for my application.

Thank you so much

Alessio

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

Try removing the following section from Page_Load:

DayPilotScheduler1.Scale = TimeScale.Manual;
DateTime start = new DateTime(DateTime.Today.Year, 1, 1, 12, 0, 0);
DateTime end = start.AddYears(1);
DayPilotScheduler1.Timeline.Clear();
for (DateTime cell = start; cell < end; cell = cell.AddDays(1))
{
    DayPilotScheduler1.Timeline.Add(cell, cell.AddDays(1));
}

This is used in the Hotel Tutorial (https://code.daypilot.org/48275/hotel-room-booking-asp-net-c-vb-sql-server) to offset the start of the cells by 12 hours to noon (to allow working with checkin/checkout time).

Answer posted by Alessio
4 years ago.

Problem solved
Hi Dan, thank you very much for your quick reply.
I did what you said and everything works fine .... thank you very much for everything

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