Timezone + dHTMLxScheduler

Hello,

I’ve got 2 questions:

1-Is it possible to set default time when in month view I create a new event?

actually scheduler adds an event at 00:00, is it possible to configure it to add an event at 08:00??



2-is there any configuration to avoid a problem with solar time?

if I try to add an event in month view on 27/10/2009 scheduler adds an event on 26/10/2009



thanks in advance



Giorgio

1-Is it possible to set default time when in month view I create a new event?

scheduler.attachEvent(“onEventCreated”,function(id,e){ //occurs exactly after event created, but before details showing or saving
var ev = scheduler.getEvent(id);
if (scheduler._mode == “month”){ //if month mode
ev.start_date.setHours(7); //set new initial time
ev.end_date.setHours(7);
}
})

>>2-is there any configuration to avoid a problem with solar time?
Problem confirmed. The scheduler handles shifting from winter time to summer time correctly, but fails for backward shift days.
Fix will be available in few days.

ok, thanks
I’ll wait for the bug fix…

Fixed version of scheduler is attached to the email.
codebase_tf.zip (47.9 KB)

Hello,

 I’ve tried  the bug fix but it seems to be still not properly working, now that we have winter time all the events are added the day before at 23:00

Giorgio

sorry, the problem still occours not every but when I try to add a new event in summer time (now that we are in winter time, events added in winter time are correctly added)
hope this helps to find and solve this bug


  Giorgio

I am tracking the issue here, too: Summer/Winter time creates offset · Issue #154 · niccokunzmann/open-web-calendar · GitHub

Hello @niccokunzmann ,

It’s a known issue and the team considers ways to fix it, unfortunately there is no any ETA when it will be fixed.

Kind regards,

The way I think, it is solved at the moment is that the DHTMLX-scheduler sends the time zone offset but I additionally send the user time zone. The user time zone is the one that is used to generate the event times. Also, I remember that the option that the server sends UTC events is disabled. This way, the event times are taken as the server sends them and the time zone is actually the one send to the server, chosen by the browser.