We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32dd670 commit bc52abfCopy full SHA for bc52abf
2 files changed
_includes/sensor.html
@@ -1,6 +1,4 @@
1
<dl>
2
- <dt>Дата оновлення:</dt>
3
- <dd id="sens-date">Н/Д</dd>
4
<dt>Температура:</dt>
5
<dd id="sens-temp">Н/Д</dd>
6
<dt>Вологість:</dt>
@@ -9,6 +7,8 @@
9
7
<dd id="sens-pres">Н/Д</dd>
10
8
<dt>Опис:</dt>
11
<dd id="sens-descr">Н/Д</dd>
+ <dt>Час оновлення:</dt>
+ <dd id="sens-date">Н/Д</dd>
12
</dl>
13
14
<canvas
assets/js/main.js
@@ -196,7 +196,9 @@ async function drawChart() {
196
197
const ctx = document.getElementById("sens-chart").getContext("2d");
198
199
- jsonData.labels = jsonData.labels.map((label) => formatDateTime(label));
+ jsonData.labels = jsonData.labels.map((label) =>
200
+ formatDateTime(new Date(label))
201
+ );
202
203
new Chart(ctx, {
204
type: "line",
0 commit comments