diff --git a/web/pages/components/chart.tsx b/web/pages/components/chart.tsx index 8d8f7609b..3efae8ecc 100644 --- a/web/pages/components/chart.tsx +++ b/web/pages/components/chart.tsx @@ -19,8 +19,7 @@ function createGraphDataset(dataArray) { const dataValues = {}; dataArray.forEach(item => { const dateObject = new Date(item.time); - const dateString = `${dateObject.getFullYear() }-${ dateObject.getMonth() }-${ dateObject.getDay() } ${ dateObject.getHours() }:${ dateObject.getMinutes()}`; - dataValues[dateString] = item.value; + dataValues[dateObject] = item.value; }) return dataValues; }