Premium support for our pure JavaScript UI components


Post by syl »

Hello,

I would like to be able to configure Scheduler Pro to display dates using UTC time zone instead of the local browser time zone.

I think that this is not possible currently using the available API, can you confirm?
Is there a known workaround to achieve this properly (i.e. not having issues related to DST, and so on)?
I have tried to use utc-data-class, but it did not fully worked for me, presumably due to the way my application is setup. Any other ideas?

Finally, I have seen this open issue on GitHub. Will it allow me to display dates in UTC time zone?
If so, do you have a beta program for potential early adopters? :)
And also, is there an expected date for this release 5.1 (I'm fully aware of the planning uncertainties here and am not expecting any commitment, but only an order of magnitude like 6 months / 1 year / 2 years / more?)

Thank you!
Sylvain


Post by Maxim Gorkovsky »

Hello.

I think that this is not possible currently using the available API, can you confirm?

Showing time (only showing, not editing) in UTC time zone is possible, but requires some work.
There is a time header which should render UTC time, renderer config should do the trick: https://bryntum.com/docs/scheduler-pro/api/Scheduler/preset/ViewPresetHeaderRow
Then there are event toolip, drag tooltip, resize tooltip also showing time. They can be customized using these configs:
https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/EventResize#config-tooltipTemplate
https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/EventDrag#config-tooltipTemplate
https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/EventTooltip
Don't forget a schedule tip:
https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/ScheduleTooltip
To display UTC date in cells you can use column renderer: https://bryntum.com/docs/scheduler-pro/api/Grid/column/Column#config-renderer

You will also need a custom date formatter that would rely on Date.getUTC... Date API: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getUTCDate

And finally, you would need to generate time axis for the UTC time zone, which can be done with this method: https://bryntum.com/docs/scheduler-pro/api/Scheduler/data/TimeAxis#function-generateTicks

Please refer to these demos for hints:

Now if all dates you use in the application contain timezone info (e.g. '2020-01-01T12:30:00z' for UTC or '2020-01-01T12:30:00+01:00' for arbitrary timezone), scheduler will work just fine. Editing records on the other hand would use dates in the local time zone and cannot be patched that easy.

Will it allow me to display dates in UTC time zone?

That is a part of the feature, yes.

If so, do you have a beta program for potential early adopters?

Normally, when this features gets merged you could try it in the nightly build. If you want to access it before I suppose you can try contacting sales at bryntum.com to discuss options.

And also, is there an expected date for this release 5.1 (I'm fully aware of the planning uncertainties here and am not expecting any commitment, but only an order of magnitude like 6 months / 1 year / 2 years / more?)

Plan was to release it Q1-2 this year, I think you can expect it to come in a few months.


Post by syl »

Thank you Maxim,
I think we'll just wait. We need to edit records, and this workaround seems a bit complex.
Sylvain


Post by syl »

Hello Maxim,

I can see that this feature is planned for v5.1 of Scheduler Pro.
I was wondering if you have any better idea of a timeline for this release (as always, with all the uncertainty that may surround it of course)?

Thanks.


Post by alex.l »

Hi syl,

Thank you for understanding. Rare estimation - 1-2 months.

All the best,
Alex


Post by syl »

Hello,
I just received the notification for 5.1.0-alpha-1 and noticed that it does not seem to include anything related to https://github.com/bryntum/support/issues/1533
Do you think there is still a chance for this feature to make it into the final 5.1.0 release?


Post by alex.l »

Hi syl,

Yes, there is still chance to make it. It's in progress now, we are doing our best to finish on time.

All the best,
Alex


Post by syl »

Hi alex,

Do you have any update on this topic?
I would be happy to try out a beta version (if available) or a nightly build.


Post by mats »

No news I'm afraid, we've been fully working on the other parts of 5.1 and it's now feature frozen so this will be a 5.2 feature I'm afraid.


Post by syl »

Hello mats,

Any news on this timezone support feature?

Sylvain


Post Reply