Our pure JavaScript Scheduler component


Post by jmeire »

Hi

The cell tooltip on my planning board always shows 12:00 or 00:00 as expected. But if I navigate to a timespan where 28/03/2020 is present, the cell tooltip changes to 13:00 or 01:00.

12h.PNG
12h.PNG (2.83 KiB) Viewed 805 times
13h.PNG
13h.PNG (3.8 KiB) Viewed 805 times

So I guess the problem is related to daylight saving time. Before 28/03 the date + hours are correct (00:00 - 12:00), but after 28/03 (daylight saving time changes) the hourse move up 1 hour.

When navigating back or forth in time where the daylight saving time is not part of the timespan, the hours are also okay.

Daylight saving time or not, I always want to see 12:00 or 00:00.
Is there a setting to resolve this or is this an issue?

Kind regards
jmeire


Post by Maxim Gorkovsky »

Hello.
This is an issue. Ticket opened here: https://github.com/bryntum/support/issues/2737 Thank you for report.

You can try to override private method if this is a major problem for you. I'm not sure of all the implications:

import TimeAxis from 'Scheduler/data/TimeAxis.js';
import Override from 'Core/mixin/Override.js';

Override.apply(class {
  static get target() {
    return { class : TimeAxis }
  }
  floorDate(date, relativeToStart, resolutionUnit, incr) {
    if (relativeToStart == null) { relativeToStart = false; }

    return this._overridden.floorData.call(this, data, relativeToStart, resolutionUnit, incr);
  }
})

Post by jmeire »

Okay, thank you.


Post by jmeire »

Hi

Is there any update yet on this issue?

Kind regards
jmeire


Post by marcio »

Hey jmeire,

Unfortunately no major updates for now. You can watch the GitHub ticket to know when there is any update on that ticket.

Best regards,
Márcio


Post by jmeire »

Hi

Is there any chance to make this a higher priority?

Kind regards
jmeire


Post by tasnim »

Hello jmeire,

I've added a comment to that ticket, that you're asking for the fix to increase the priority of that ticket.

Thank you for your patience.

Good Luck :)


Post by jmeire »

Thank you!


Post Reply