Skip to content

Commit 6ee5f70

Browse files
authored
fix(time): Quarters split the year into 4 quarters not 3. close apache#17057 (apache#17073)
* fix(time): Quarters split the year into 4 quarters not 3. close apache#17057 * remove an unnecessary binary
1 parent 6c793aa commit 6ee5f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/time.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function format(
113113
const date = numberUtil.parseDate(time);
114114
const y = date[fullYearGetterName(isUTC)]();
115115
const M = date[monthGetterName(isUTC)]() + 1;
116-
const q = Math.floor((M - 1) / 4) + 1;
116+
const q = Math.floor((M - 1) / 3) + 1;
117117
const d = date[dateGetterName(isUTC)]();
118118
const e = date['get' + (isUTC ? 'UTC' : '') + 'Day' as 'getDay' | 'getUTCDay']();
119119
const H = date[hoursGetterName(isUTC)]();

0 commit comments

Comments
 (0)