Posts: 1
Joined: Mon Nov 28, 2022 1:04 pm

Gantt Chart TimeZone Issue

Mon May 15, 2023 9:49 am

I am using angular frontend to display highcharts Gantt with an API call to Sql Database to get Data.
However the CurrentDateIndicator is showing incorrectly. Current Time is 10:45 AM displayed Time is 9:45 AM
Changing the Timezone has no impact but if I add a timezoneOffset as below the currentDateIndicator is current but the start and end times are also offset resulting in incorrect data being displayed. Can you suggest a way to resolve this?

time: {
timezone: 'EUROPE/DUBLIN',
timezoneOffset: -60,

Posts: 707
Joined: Thu Oct 06, 2022 11:31 am

Re: Gantt Chart TimeZone Issue

Tue May 16, 2023 8:00 am


Welcome to our forum and thanks for contacting us with your question!

Do you have the moment.js library imported? By default, the input date is interpreted as UTC+0 unless you disable the useUTC option, so for Dublin, which is in the +0 time zone, the time is the same as the input date. You can read more about it here:

Demo: https://jsfiddle.net/BlackLabel/ato7fn04/

I hope you will find it useful
Best regards

Return to “Highcharts Gantt”