Skip to content

Commit

Permalink
Merge pull request #1946 from ChrisPaulBennett/timezone
Browse files Browse the repository at this point in the history
Display x-axis in UTC
  • Loading branch information
ChrisPaulBennett authored Oct 1, 2024
2 parents 2e4b0b3 + b3bfda9 commit 065b948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/cylc/gantt/GanttChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ export default {
xaxis: {
labels: {
formatter: function (value, timestamp, opts) {
return new Date(value).toTimeString().slice(0, 9)
return new Date(value).toUTCString().slice(17, -3)
}
},
title: {
text: 'Time',
text: 'Time (UTC)',
},
},
yaxis: {
Expand Down

0 comments on commit 065b948

Please sign in to comment.