Scheduler hour issue when DST transition happens inside view. x_step related

we are working on a scheduler that runs based on user timezones
we set the timezone up beforehand, and we have the scheduler UTC set to false, and we use render: tree.

we have recently noticed an issue where when we use a week view, and our week has standard and DST times, we get half of the week shifted by an hour. i also checked and same thing happens on a one day view and two day view…


the issue doesnt happen if we dont simulate our browser being in the areas that has a DST change during that time.

now the thing is that this doesnt happen to all DST times or non DST time.
if i move my week view to start on nov 4th for example, the view is normal and starts at 12PM
for example, notice how the correct time is in the first image vs the second image


and if i have my week end before DST ends, it is also normal

we use the scheduler as a static resource

from my understanding the issue is probably caused by the ‘x_step’ where it was set at 6 at base for week view for example, but then during DST we have a 25 hour day instead of 24, (or a 23 hour day) which causes the steps to move less / more that we ‘see’ and causes issues. similarly when x_step is set to 1 for one day view…

is there a way to deal with this?

Hello,

Unfortunately, I was not able to reproduce your issue locally.
The following snippet seems to work correctly for me:
https://snippet.dhtmlx.com/k2yr7by6

The issue may be related with some specific Scheduler configuration, but it’s hard to suppose what exactly goes wrong in your case without more details, so could you please reproduce the issue in the snippet above (open the snippet => reproduce the issue => click the “Save” button => send me the new link)? Or could you please send me a simplified demo with all necessary files and install/run instructions, that I will be able to run locally and reproduce the issue?

hey :smile:
i tried in your snippet, and it seems to only cause an issue during timeline view. so to set sensor to San Francisco for example, and moving to timeline view showing the week with nov 2nd. (i cant post a photo here for some reason so cant show you specifically)

my team seems to have received this solution from support DHTMLX Snippet Tool
which seems to work for now, i am encountering issues of the pre DST day showing up twice on some occasions (like ‘move to next day’ in timeline view sometimes not going forward on the first click)
but as i am unsure what specific way to reproduce it, idk if it is from the fix or our section