From 0a785cc1c98e59dd49a9f8e78867a5470dc77836 Mon Sep 17 00:00:00 2001 From: ChrisPaulBennett Date: Tue, 24 Sep 2024 14:14:46 +0100 Subject: [PATCH 1/2] X-axis now displays time in UTC --- src/components/cylc/gantt/GanttChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cylc/gantt/GanttChart.vue b/src/components/cylc/gantt/GanttChart.vue index 1dbac92a5..afe36e9bf 100644 --- a/src/components/cylc/gantt/GanttChart.vue +++ b/src/components/cylc/gantt/GanttChart.vue @@ -209,7 +209,7 @@ 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: { From b3bfda932a10b506d6332eb1fb1562199fd4b517 Mon Sep 17 00:00:00 2001 From: ChrisPaulBennett Date: Tue, 1 Oct 2024 09:04:40 +0100 Subject: [PATCH 2/2] Gantt Chart x-axis title changed --- src/components/cylc/gantt/GanttChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cylc/gantt/GanttChart.vue b/src/components/cylc/gantt/GanttChart.vue index afe36e9bf..48994b12e 100644 --- a/src/components/cylc/gantt/GanttChart.vue +++ b/src/components/cylc/gantt/GanttChart.vue @@ -213,7 +213,7 @@ export default { } }, title: { - text: 'Time', + text: 'Time (UTC)', }, }, yaxis: {