Hello!
I was experimenting with the Gantt chart and noticed that there is an issue with displaying times of events. They appear 12 hours later than they really should be.
Here are some screenshots. You can see that I have one event that starts at midnight on October 1st and ends at noon on October 3rd. The date string is also parsed correctly to a Date object, but on the chart it displays as noon on October 1st and midnight on October 4th.
Hello! I was experimenting with the Gantt chart and noticed that there is an issue with displaying times of events. They appear 12 hours later than they really should be.
Here are some screenshots. You can see that I have one event that starts at midnight on October 1st and ends at noon on October 3rd. The date string is also parsed correctly to a Date object, but on the chart it displays as noon on October 1st and midnight on October 4th.
I think the problem is in the label position calculation: https://github.com/frappe/gantt/blob/1d024dcb55d3a150ca8c819985067f9a69ae80ba/src/index.js#L545
This happens only in the "quarter day" and "half day" modes.