This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/master by this push: new 6ee5f7076 fix(time): Quarters split the year into 4 quarters not 3. close #17057 (#17073) 6ee5f7076 is described below commit 6ee5f7076d84b72dc65b4c53e92e5003b8624b2f Author: Woonters <woont...@gmail.com> AuthorDate: Fri May 20 03:05:19 2022 +0100 fix(time): Quarters split the year into 4 quarters not 3. close #17057 (#17073) * fix(time): Quarters split the year into 4 quarters not 3. close #17057 * remove an unnecessary binary --- src/util/time.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/time.ts b/src/util/time.ts index 89cfc27ce..9a71f44cf 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)](); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org