You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2021/08/04 05:18:26 UTC

[echarts] branch master updated: fix 15426:milliseconds format

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 408e284  fix 15426:milliseconds format
     new 18ff3f5  Merge pull request #15465 from leavest/fix-15426
408e284 is described below

commit 408e284706ddd7ae89502f837b1edfd2e4ab357d
Author: leavestwu <le...@zego.im>
AuthorDate: Tue Aug 3 15:43:55 2021 +0800

    fix 15426:milliseconds format
---
 src/util/time.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/time.ts b/src/util/time.ts
index 09d7bab..72878a6 100644
--- a/src/util/time.ts
+++ b/src/util/time.ts
@@ -318,7 +318,7 @@ export function secondsGetterName(isUTC: boolean) {
 }
 
 export function millisecondsGetterName(isUTC: boolean) {
-    return isUTC ? 'getUTCSeconds' : 'getSeconds';
+    return isUTC ? 'getUTCMilliseconds' : 'getMilliseconds';
 }
 
 export function fullYearSetterName(isUTC: boolean) {
@@ -346,5 +346,5 @@ export function secondsSetterName(isUTC: boolean) {
 }
 
 export function millisecondsSetterName(isUTC: boolean) {
-    return isUTC ? 'setUTCSeconds' : 'setSeconds';
+    return isUTC ? 'setUTCMilliseconds' : 'setMilliseconds';
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org