Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Do not format date, just pass raw date object to chart. Closes https://github.com/owncast/owncast/issues/459

Gabe Kangas59eb6eaa168e
diff --git a/web/pages/components/chart.tsx b/web/pages/components/chart.tsx
index 8d8f7609b2..3efae8ecc8 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;
}