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/03/15 06:26:00 UTC
[echarts] 01/01: fix(tooltip): fix time axis formatter #14470
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch fix-14470
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 5dd575b13351b4fd7464d11ce79a88250000c517
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Mar 15 14:11:27 2021 +0800
fix(tooltip): fix time axis formatter #14470
---
src/util/format.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/format.ts b/src/util/format.ts
index 53d94cb..c495020 100644
--- a/src/util/format.ts
+++ b/src/util/format.ts
@@ -82,7 +82,7 @@ export function makeValueReadable(
valueType: DimensionType,
useUTC: boolean
): string {
- const USER_READABLE_DEFUALT_TIME_PATTERN = 'yyyy-MM-dd hh:mm:ss';
+ const USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';
function stringToUserReadable(str: string): string {
return (str && zrUtil.trim(str)) ? str : '-';
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org