mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add date/time of VPS and router when there is a time diff)
This commit is contained in:
parent
36b50e7a5c
commit
94a4b68fd9
1 changed files with 4 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
-- along with OverTheBox. If not, see (http://www.gnu.org/licenses/)
|
-- along with OverTheBox. If not, see (http://www.gnu.org/licenses/)
|
||||||
-%>
|
-%>
|
||||||
<%
|
<%
|
||||||
-- Copyright 2018-2020 Ycarus (Yannick Chabanois) ycarus@zugaina.org for OpenMPTCProuter
|
-- Copyright 2018-2022 Ycarus (Yannick Chabanois) ycarus@zugaina.org for OpenMPTCProuter
|
||||||
--
|
--
|
||||||
-- Small changes to make this work with OpenMPTCProuter
|
-- Small changes to make this work with OpenMPTCProuter
|
||||||
-- New features:
|
-- New features:
|
||||||
|
@ -307,7 +307,9 @@ local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openm
|
||||||
}
|
}
|
||||||
if (mArray.openmptcprouter.vps_time_accurate == false)
|
if (mArray.openmptcprouter.vps_time_accurate == false)
|
||||||
{
|
{
|
||||||
statusMessage += '<%:Big time difference between the server and the router%>' + '<br/>';
|
var vps_time = new Date(mArray.openmptcprouter.vps_time*1000).toISOString();
|
||||||
|
var omr_time = new Date(mArray.openmptcprouter.omr_time*1000).toISOString();
|
||||||
|
statusMessage += '<%:Big time difference between the server and the router%> (' + vps_time + '/' + omr_time + ') <br/>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (statusMessage !== "" && statusMessageClass !== "error")
|
if (statusMessage !== "" && statusMessageClass !== "error")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue