From 283664aab0dc880f5cf60330a01bd8a140ec8aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=BE=E6=B5=A6=20=E7=9F=A5=E4=B9=9F=20Matsuura=20Tomoy?= =?UTF-8?q?a?= Date: Mon, 29 Jan 2024 15:46:30 +0900 Subject: [PATCH] date format --- quartz/components/Date.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quartz/components/Date.tsx b/quartz/components/Date.tsx index 8713cfd3..63a0e1fa 100644 --- a/quartz/components/Date.tsx +++ b/quartz/components/Date.tsx @@ -17,9 +17,9 @@ export function getDate(cfg: GlobalConfiguration, data: QuartzPluginData): Date } export function formatDate(d: Date): string { - return d.toLocaleDateString("en-US", { + return d.toLocaleDateString("ja-JP", { year: "numeric", - month: "short", + month: "2-digit", day: "2-digit", }) }