Home Forums Chart Support Prevent Date Conversion to Local Time Reply To: Prevent Date Conversion to Local Time

#61173

@scompliance,

By default, JavaScript Date objects are displayed based on the client’s local timezone. If you wish to format the displayed date object in UTC, you can use labelFormatter and contentFormatter to format the labels and the tooltip content, respectively.

Please take a look at this JSFiddle for a working example of the same.

Chart with UTC labels


Ananya Deka
Team CanvasJS