MaTeMaTuK / gantt-task-react

Gantt chart for React with Typescript
MIT License
899 stars 494 forks source link

Possibility to not use local dates #161

Open teeboteebo opened 1 year ago

teeboteebo commented 1 year ago

Hey,

Currently working on making a gantt-chart intended for a world wide use. Is there any way of defaulting all the dates generated to UTC +0 timezone?

Changing the dates to UTC is one thing, but I'd also like to have the chart show dates in the same timezone and not default to clients local timezone.

Is this possible with the current version or is it something that has been thought about?

teeboteebo commented 1 year ago

Currently I'm forcing all start dates to be "T00:00:000Z" and end dates "23:59:59:999Z". The issue is rather in the rendering, where the bars could potentially change dates depending on what timezone the user is in.