Is there any way to disable DST on Scheduler? I’m trying the online demo and when DST starts (10/15/2011) here in Brazil, demo cannot skip to next week after DST begins.
On last year, we have the same problem reported at this forum (viewtopic.php?f=6&t=15551). This a bug occours when Daylight Saving Time starts.
I try to debug your code about DST start, but I can’t fix it.
I do the following to debug:
create a new html with only dhtmlxScheduler elements and setting default view to week.
Config parameter: noy changed.
open dhtmlxscheduler_debug.js provided on this thread and change week_start at line 2556 to:
week_start:function(date){
var shift=date.getDay();
if (scheduler.config.start_on_monday){
if (shift===0) shift=6;
else shift–;
}
alert((this.add(date,-1shift,“day”)));
return this.date_part(this.add(date,-1shift,“day”));
},
open a webbrowser e point to my new dhtmlxscheduler page.
click on next week and see dates changing.
when i’m at 10/09 week and click again on next week, I can see that date/time reported by that alert inserted at 3rd step is 23:00hs and not 00:00hs like other weeks.
It is a bug on start DST and I do not known how to work around that.
Can’t reproduce this bug with updated dhtmlxscheduler.js above.
What I did:
Switched to Brasilia timezone (GMT -3).
Added scheduler.config.start_on_monday = false;
Navigated to 9 October 2011 (Sunday) and clicked Next week button with the breakpoint set to "return this.date_part(this.add(date,-1shift,“day”));" line.
At this point this.add(date,-1shift,“day”) returns Sun Oct 16 2011 01:00:00 GMT-0200 and that’s correct.
Kind regards,
Ilya
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan