Compare commits

..

No commits in common. "07230e1ef33417fc9da9e3f39d70022de32bef4a" and "2a7ccc7e5f8245f871ed92648d3f1a47d8d1dffe" have entirely different histories.

View File

@ -28,7 +28,7 @@ function buildTable(data, offset = 0) {
color = "tempNormal";
}
const parsedDate = luxon.DateTime.fromISO(log.date, { zone: "UTC" }).setZone("Europe/Copenhagen").setLocale("gb");
const parsedDate = luxon.DateTime.fromISO(log.date).setZone("Europe/Copenhagen").setLocale("gb");
const date = parsedDate.toLocaleString(luxon.DateTime.DATE_SHORT);
const time = parsedDate.toLocaleString(luxon.DateTime.TIME_WITH_SECONDS);
@ -139,7 +139,7 @@ async function fetchData() {
},
adapters: {
date: {
zone: "system",
zone: "Europe/Copenhagen",
},
},
},
@ -163,7 +163,7 @@ async function fetchData() {
backgroundColor: `rgba(${color}, 1.0)`,
borderColor: `rgba(${color}, 0.1)`,
data: dataset.map(log => ({
x: luxon.DateTime.fromISO(log.date, { zone: "UTC" }).toMillis(),
x: new Date(log.date).getTime(),
y: log.temperature,
})),
};