diff --git a/wled00/data/settings_time.htm b/wled00/data/settings_time.htm
index 622cff668..ffe82924d 100644
--- a/wled00/data/settings_time.htm
+++ b/wled00/data/settings_time.htm
@@ -16,7 +16,7 @@
}
function S()
{
- BTa();GetV();Cs();FC();
+ BTa();GetV();updLoc();Cs();FC();
}
function gId(s)
{
@@ -74,6 +74,8 @@
}
gId("W"+i).value=a[i];
}
+ if (d.Sf.LTR.value==="S") { d.Sf.LT.value = -1*parseFloat(d.Sf.LT.value); }
+ if (d.Sf.LNR.value==="W") { d.Sf.LN.value = -1*parseFloat(d.Sf.LN.value); }
}
function addRow(i,p,l,d) {
var t = gId("macros"); // table
@@ -90,6 +92,10 @@
td = tr.insertCell(3);
td.innerHTML = ``;
}
+ function updLoc(i) {
+ if (parseFloat(d.Sf.LT.value)<0) { d.Sf.LTR.value = "S"; d.Sf.LT.value = -1*parseFloat(d.Sf.LT.value); } else d.Sf.LTR.value = "N";
+ if (parseFloat(d.Sf.LN.value)<0) { d.Sf.LNR.value = "W"; d.Sf.LN.value = -1*parseFloat(d.Sf.LN.value); } else d.Sf.LNR.value = "E";
+ }
function GetV()
{
//values injected by server while sending HTML
@@ -134,8 +140,8 @@
UTC offset: seconds (max. 18 hours)
Current local time is unknown.
- Latitude (N):
- Longitude (E):
+ Latitude:
+ Longitude: