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

Gantt Chart TimeZone Issue

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,
User avatar
Posts: 755
Joined: Thu Oct 06, 2022 11:31 am

Re: Gantt Chart TimeZone Issue


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
Dawid Draguła
Highcharts Developer

Return to “Highcharts Gantt”