mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
fix the year–quarter format date is not formatted using localized number formatting
This commit is contained in:
@@ -1805,7 +1805,7 @@ export function useI18n() {
|
|||||||
function formatDateTimeToGregorianLikeYearQuarter(dateTime: DateTime): string {
|
function formatDateTimeToGregorianLikeYearQuarter(dateTime: DateTime): string {
|
||||||
const gregorianLikeCalendarType = getGregorianLikeCalendarType();
|
const gregorianLikeCalendarType = getGregorianLikeCalendarType();
|
||||||
const dateTimeFormatOptions = getDateTimeFormatOptions({ calendarType: gregorianLikeCalendarType });
|
const dateTimeFormatOptions = getDateTimeFormatOptions({ calendarType: gregorianLikeCalendarType });
|
||||||
const year = dateTime.getLocalizedCalendarYear(dateTimeFormatOptions);
|
const year = formatDateTime(dateTime, getLocalizedShortYearFormat(), dateTimeFormatOptions);
|
||||||
const quarter = dateTime.getLocalizedCalendarQuarter(dateTimeFormatOptions);
|
const quarter = dateTime.getLocalizedCalendarQuarter(dateTimeFormatOptions);
|
||||||
return formatYearQuarter(year, quarter);
|
return formatYearQuarter(year, quarter);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user