Hello Bryntum-Team,
We may have found a little inconsistency in the logic of the scheduler pro when manually configured with a timezone (or we just don't understand something). In attached pdf you will find code that you can post in one of your demos (we used this one: https://bryntum.com/products/schedulerpro/examples/timezone/).
As you can see in the code we configured the schedule to use Etc/UTC
timezone. When we try to calculate the working time between two dates (particularly
'Mon Dec 11 2023 00:00:00 GMT+0100 (Central European Standard Time)'
and
'Sat Dec 16 2023 00:00:00 GMT+0100 (Central European Standard Time)'
. The result is 428400000ms which results in 4.95 days when converted. We expect this to be 5 days and can't explain the odd number. We also tried with
01:00:00 GMT+0100
for both dates (which would be 00:00:00 in UTC date) and the
ignoreTimezone: true
flag for the calendar config but the result is the same.
Only this
calendar.calculateDurationMs(
new Date('Sun Dec 10 2023 23:00:00 GMT+0100 (Central European Standard Time)'),
new Date('Fr Dec 15 2023 23:00:00 GMT+0100 (Central European Standard Time)'),
),
results in a timespan of 5 days.
Thanks in advance for any information about that.
Best regards