From 5d5a01b0cb4cde26110251368ec1b07aa1dda0ac Mon Sep 17 00:00:00 2001 From: bangonicdd <157843588+bangonicdd2@users.noreply.github.com> Date: Fri, 12 Jul 2024 19:38:24 +0900 Subject: [PATCH] add date format for short month --- src/ts/parser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/parser.ts b/src/ts/parser.ts index 88658a19..94acbda3 100644 --- a/src/ts/parser.ts +++ b/src/ts/parser.ts @@ -1497,6 +1497,7 @@ const dateTimeFormat = (main:string, time = 0) => { .replace(/YYYY/g, date.getFullYear().toString()) .replace(/YY/g, date.getFullYear().toString().substring(2)) .replace(/MMMM/g, Intl.DateTimeFormat('en', { month: 'long' }).format(date)) + .replace(/MMM/g, Intl.DateTimeFormat('en', { month: 'short' }).format(date)) .replace(/MM/g, (date.getMonth() + 1).toString().padStart(2, '0')) .replace(/DDDD/g, Math.floor((date.getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / (1000 * 60 * 60 * 24)).toString()) .replace(/DD/g, date.getDate().toString().padStart(2, '0'))