From afcfb7e19c85ab6248b542348804a8e4a5d94cc7 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Thu, 29 Jun 2023 04:17:47 +0800 Subject: [PATCH] Fix: Incorrect data type for DateTime component --- src/pages/StatusPage.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index ca684a1a0..eeddcf7b1 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -325,7 +325,7 @@

-
{{ $t("Last Updated") }}:
+
{{ $t("Last Updated") }}: {{ lastUpdateTimeDisplay }}
{{ $tc("statusPageRefreshIn", [ updateCountdownText]) }}
@@ -360,7 +360,6 @@ import DOMPurify from "dompurify"; import Confirm from "../components/Confirm.vue"; import PublicGroupList from "../components/PublicGroupList.vue"; import MaintenanceTime from "../components/MaintenanceTime.vue"; -import DateTime from "../components/Datetime.vue"; import { getResBaseURL } from "../util-frontend"; import { STATUS_PAGE_ALL_DOWN, STATUS_PAGE_ALL_UP, STATUS_PAGE_MAINTENANCE, STATUS_PAGE_PARTIAL_DOWN, UP, MAINTENANCE } from "../util.ts"; import Tag from "../components/Tag.vue"; @@ -386,7 +385,6 @@ export default { Confirm, PrismEditor, MaintenanceTime, - DateTime, Tag, VueMultiselect }, @@ -583,6 +581,10 @@ export default { return ""; } }, + + lastUpdateTimeDisplay() { + return this.$root.datetime(this.lastUpdateTime); + } }, watch: {