From e29ded2587871d0e0e2cb609352cb991a3c62619 Mon Sep 17 00:00:00 2001 From: Woonters Date: Thu, 19 May 2022 15:22:50 +0100 Subject: [PATCH 1/2] fix(time): Quarters split the year into 4 quarters not 3. close #17057 --- src/util/.time.ts.un~ | Bin 0 -> 607 bytes src/util/time.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/util/.time.ts.un~ diff --git a/src/util/.time.ts.un~ b/src/util/.time.ts.un~ new file mode 100644 index 0000000000000000000000000000000000000000..c4715a36c9998dfc2413899ff7761eb8d6d1f503 GIT binary patch literal 607 zcmWH`%$*;a=aT=FfvMbI{?nD++DE05vga&kV|(*1GwItt#))#m^P?URq9mevyWTuY#_Ep{9bqf{CVrwt}HGP<06qs{k=0 z6ay(Z8zjb%)TVfg1tJ@N0VIG1KvFP682$qRSUZ}cQ7*MY02m!Nq0#YG0%&M45SKz@ O9uyTM#J*|c^Hl((0ymEU literal 0 HcmV?d00001 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)](); From 6bda4a4b31367890ab6b7ff10744f98327413201 Mon Sep 17 00:00:00 2001 From: Woonters Date: Thu, 19 May 2022 16:20:08 +0100 Subject: [PATCH 2/2] remove an unnecessary binary --- src/util/.time.ts.un~ | Bin 607 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/util/.time.ts.un~ diff --git a/src/util/.time.ts.un~ b/src/util/.time.ts.un~ deleted file mode 100644 index c4715a36c9998dfc2413899ff7761eb8d6d1f503..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 607 zcmWH`%$*;a=aT=FfvMbI{?nD++DE05vga&kV|(*1GwItt#))#m^P?URq9mevyWTuY#_Ep{9bqf{CVrwt}HGP<06qs{k=0 z6ay(Z8zjb%)TVfg1tJ@N0VIG1KvFP682$qRSUZ}cQ7*MY02m!Nq0#YG0%&M45SKz@ O9uyTM#J*|c^Hl((0ymEU