From 98aa5351938f4de62e60ff2e9adb73ae76efa8e6 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Fri, 16 Jan 2026 23:11:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=20the=20year=E2=80=93quarter=20format=20dat?= =?UTF-8?q?e=20is=20not=20formatted=20using=20localized=20number=20formatt?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/helpers.ts b/src/locales/helpers.ts index ede373ef..beba7a30 100644 --- a/src/locales/helpers.ts +++ b/src/locales/helpers.ts @@ -1805,7 +1805,7 @@ export function useI18n() { function formatDateTimeToGregorianLikeYearQuarter(dateTime: DateTime): string { const gregorianLikeCalendarType = getGregorianLikeCalendarType(); const dateTimeFormatOptions = getDateTimeFormatOptions({ calendarType: gregorianLikeCalendarType }); - const year = dateTime.getLocalizedCalendarYear(dateTimeFormatOptions); + const year = formatDateTime(dateTime, getLocalizedShortYearFormat(), dateTimeFormatOptions); const quarter = dateTime.getLocalizedCalendarQuarter(dateTimeFormatOptions); return formatYearQuarter(year, quarter); }