From ba67d688070a8efe2bfa5aea8dfce73870e4c118 Mon Sep 17 00:00:00 2001 From: smit95tpatel Date: Tue, 28 Dec 2021 12:27:25 +0530 Subject: [PATCH] coverted to milllisec in a readable format --- frontend/src/components/Dashboard/DashboardDowntimes.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Dashboard/DashboardDowntimes.vue b/frontend/src/components/Dashboard/DashboardDowntimes.vue index bbd0df9e..73f19121 100644 --- a/frontend/src/components/Dashboard/DashboardDowntimes.vue +++ b/frontend/src/components/Dashboard/DashboardDowntimes.vue @@ -68,7 +68,7 @@ export const initialParams = { }; export const convertToSec = (val) => { - return +new Date(val)/1000; + return (new Date(val).getTime())/1000; }; export const checkErrors = (params) => {