From fda4ee94a65e5744706cd898248189d075b3db7b Mon Sep 17 00:00:00 2001 From: BingBlog Date: Thu, 18 Jan 2018 20:01:25 +0800 Subject: [PATCH] time subtitle has a wrong showing format #176 (#184) * fix #176 --- frontend/src/scalars/ui/chart.san | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/scalars/ui/chart.san b/frontend/src/scalars/ui/chart.san index 75e4bee6..08ca5a6f 100644 --- a/frontend/src/scalars/ui/chart.san +++ b/frontend/src/scalars/ui/chart.san @@ -556,7 +556,7 @@ export default { Smoothed: data[indexPropMap.Smoothed].toString().slice(0, 6), Value: data[indexPropMap.Value].toString().slice(0, 6), Step: data[indexPropMap.Step], - Time: moment(Math.floor(data[indexPropMap.Time] * 1000), 'X').format('YYYY-MM-DD HH:mm:ss'), + Time: moment(Math.floor(data[indexPropMap.Time] * 1000), 'x').format('YYYY-MM-DD HH:mm:ss'), // Relative display value should take easy-read into consideration. // Better to tranform data to 'day:hour', 'hour:minutes', 'minute: seconds' and second only. Relative: Math.floor(data[indexPropMap.Relative] * 60 * 60) + 's' -- GitLab