From a1f2ecaa07c6267a3bb7966b5817963a750cef9a Mon Sep 17 00:00:00 2001 From: Florian Mauracher Date: Mon, 8 Jul 2024 04:42:55 +0200 Subject: [PATCH] Display passes in UTC --- src/modules/util/DescriptionHelper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/util/DescriptionHelper.js b/src/modules/util/DescriptionHelper.js index 8ade6b99..86e68464 100644 --- a/src/modules/util/DescriptionHelper.js +++ b/src/modules/util/DescriptionHelper.js @@ -1,8 +1,10 @@ import * as Cesium from "@cesium/engine"; import dayjs from "dayjs"; import relativeTime from "dayjs/plugin/relativeTime"; +import utc from "dayjs/plugin/utc"; dayjs.extend(relativeTime); +dayjs.extend(utc); export class DescriptionHelper { /** cachedCallbackProperty @@ -119,8 +121,8 @@ export class DescriptionHelper { ${htmlName} ${countdown} - ${dayjs(pass.start).format("DD.MM HH:mm:ss")} - ${dayjs(pass.end).format("HH:mm:ss")} + ${dayjs.utc(pass.start).format("DD.MM HH:mm:ss")} + ${dayjs.utc(pass.end).format("HH:mm:ss")} ${pass.maxElevation.toFixed(0)}° ${pass.azimuthApex.toFixed(2)}°