mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-14 23:17:15 +02:00
0.7.16
* next attempt to fix yield day for multiple inverters #1016 * fix export settings date #1040 * fix time on WebUI (timezone was not observed) #913 #1016
This commit is contained in:
parent
e5d78bf5b4
commit
ffe7d47b31
8 changed files with 29 additions and 15 deletions
|
@ -62,10 +62,6 @@
|
|||
getAjax("/api/setup", apiCb, "POST", JSON.stringify(obj));
|
||||
}
|
||||
|
||||
function ts2Span(ts) {
|
||||
return span(new Date(ts * 1000).toLocaleString('de-DE'));
|
||||
}
|
||||
|
||||
function parseGeneric(obj) {
|
||||
if(exeOnce)
|
||||
parseESP(obj);
|
||||
|
@ -92,7 +88,7 @@
|
|||
if(obj["ts_now"] < 1680000000)
|
||||
setTime();
|
||||
else
|
||||
dSpan.innerHTML = date.toISOString().substring(0, 19).replace('T', ', ');
|
||||
dSpan.innerHTML = toIsoDateStr(date);
|
||||
}
|
||||
else {
|
||||
dSpan.innerHTML = "";
|
||||
|
@ -157,7 +153,7 @@
|
|||
if(false == i["is_avail"]) {
|
||||
if(i["ts_last_success"] > 0) {
|
||||
var date = new Date(i["ts_last_success"] * 1000);
|
||||
p.append(span("-> last successful transmission: " + date.toISOString().substring(0, 19).replace('T', ', ')), br());
|
||||
p.append(span("-> last successful transmission: " + toIsoDateStr(date)), br());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -190,7 +186,7 @@
|
|||
|
||||
function tick() {
|
||||
if(0 != ts)
|
||||
document.getElementById("date").innerHTML = (new Date((++ts) * 1000)).toISOString().substring(0, 19).replace('T', ', ');
|
||||
document.getElementById("date").innerHTML = toIsoDateStr((new Date((++ts) * 1000)));
|
||||
if(++tickCnt >= 10) {
|
||||
tickCnt = 0;
|
||||
getAjax('/api/index', parse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue