From 1d7455c3e9334a2d2aec278fecf35bab17303318 Mon Sep 17 00:00:00 2001 From: Eana Hufwe Date: Thu, 11 Jul 2024 02:31:27 +0000 Subject: [PATCH] fix(client): use app locale for note header date --- packages/client/src/pages/note.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/note.vue b/packages/client/src/pages/note.vue index e8f7d4bef6..955a44e7c5 100644 --- a/packages/client/src/pages/note.vue +++ b/packages/client/src/pages/note.vue @@ -80,6 +80,7 @@ import { definePageMetadata } from "@/scripts/page-metadata"; import { i18n } from "@/i18n"; import { defaultStore } from "@/store"; import icon from "@/scripts/icon"; +import { dateTimeFormat } from "@/scripts/intl-const"; const props = defineProps<{ noteId: string; @@ -177,7 +178,7 @@ definePageMetadata( title: i18n.t("noteOf", { user: appearNote.value.user.name || appearNote.value.user.username, }), - subtitle: new Date(appearNote.value.createdAt).toLocaleString(), + subtitle: dateTimeFormat.format(new Date(appearNote.value.createdAt)), avatar: appearNote.value.user, path: `/notes/${appearNote.value.id}`, share: {