Page 1 of 1

Start Date is not correctly displayed if time is set to 00:00

Posted: Thu Mar 10, 2022 4:16 pm
by julius stein

Hallo Terence

Could you provide a fix for the following date/time issue?

If the date time is set to 00:00 the bryntum gant view shows the previous day

Odoo Version: 15
Reproducible: Yes
Reproducible on odoo-gantt.bryntum.com: yes
Bryntum App Version: 15.0.1.3.1

Thanks for your effort.


Re: Start Date is not correctly displayed if time is set to 00:00

Posted: Thu Mar 10, 2022 5:48 pm
by Terence

It is applying the user timezone ... This task is returned like

 "startDate": "2022-03-09T23:00:00",
  "endDate": "2022-03-18T14:15:00",

You could set displayFormat to show hours, in the view it is visible that it starts at 23 hours.

https://www.bryntum.com/docs/gantt/api/Gantt/column/StartDateColumn#config-format


Re: Start Date is not correctly displayed if time is set to 00:00

Posted: Thu Mar 10, 2022 6:19 pm
by Terence

To correct. The tasks dates are returned as UTC and not corrected by the browser locale setting. It should take tz of the user into account.

I will open a ticket.


Re: Start Date is not correctly displayed if time is set to 00:00

Posted: Thu Mar 10, 2022 6:21 pm
by Terence

Re: Start Date is not correctly displayed if time is set to 00:00

Posted: Tue Mar 29, 2022 12:08 pm
by Terence

This one is released in 1.3.3