Skip to content

Commit

Permalink
Display passes in UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowm committed Jul 8, 2024
1 parent be8221f commit a1f2eca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/util/DescriptionHelper.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -119,8 +121,8 @@ export class DescriptionHelper {
<tr>
${htmlName}
<td>${countdown}</td>
<td><a onclick='parent.postMessage(${JSON.stringify(pass)}, "*")'>${dayjs(pass.start).format("DD.MM HH:mm:ss")}</td>
<td>${dayjs(pass.end).format("HH:mm:ss")}</td>
<td><a onclick='parent.postMessage(${JSON.stringify(pass)}, "*")'>${dayjs.utc(pass.start).format("DD.MM HH:mm:ss")}</td>
<td>${dayjs.utc(pass.end).format("HH:mm:ss")}</td>
<td class="ibt-right">${pass.maxElevation.toFixed(0)}&deg</td>
<td class="ibt-right">${pass.azimuthApex.toFixed(2)}&deg</td>
</tr>
Expand Down

0 comments on commit a1f2eca

Please sign in to comment.