diff --git a/src/util/time.ts b/src/util/time.ts index 89cfc27cee..9a71f44cfc 100644 --- a/src/util/time.ts +++ b/src/util/time.ts @@ -113,7 +113,7 @@ export function format( const date = numberUtil.parseDate(time); const y = date[fullYearGetterName(isUTC)](); const M = date[monthGetterName(isUTC)]() + 1; - const q = Math.floor((M - 1) / 4) + 1; + const q = Math.floor((M - 1) / 3) + 1; const d = date[dateGetterName(isUTC)](); const e = date['get' + (isUTC ? 'UTC' : '') + 'Day' as 'getDay' | 'getUTCDay'](); const H = date[hoursGetterName(isUTC)]();