WAN Mode Page to configure this page." clasName = "floatRight toggletext_dis" dis_status = "disabled" end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) if(inputTable["ntp.server2"] == null or inputTable["ntp.server2"] == "") then inputTable["ntp.server2"] = "time-h.netgear.com" end if(inputTable ~= "0") then errorFlag, statusCode = time.ntp_config(inputTable, RowId, "edit") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) else local currentTime = util.time() -- for error if (errorFlag ~= nil and errorFlag ~= "OK") then configRowId = RowId configRow = db.getRow("ntp", "ntp._ROWID_", configRowId) --get from db again configRow = util.tableAppend(configRow, web.cgiToLuaTable(cgi)) --overwrite with user input -- for edit else configRowId = "1" configRow = db.getRow("ntp", "ntp._ROWID_", configRowId) timeRow = db.getRow("ManualDate","_ROWID_", configRowId) if(timeRow ~= nil) then configRow["ManualDate.hours"] = timeRow["ManualDate.hours"] configRow["ManualDate.minutes"] = timeRow["ManualDate.minutes"] configRow["ManualDate.seconds"] = timeRow["ManualDate.seconds"] configRow["ManualDate.Day"] = timeRow["ManualDate.Day"] configRow["ManualDate.Month"] = timeRow["ManualDate.Month"] configRow["ManualDate.Year"] = timeRow["ManualDate.Year"] end end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - Time Zone
 
Time Zone
 
IPv6
IPv4
 
 
$| statusMessage |$
Set Time, Date and NTP Servers
Date / Time:
Automatically Adjust for Daylight Savings Time
Resolve IPv6 address for servers
Select NTP Mode:
Select Stratum:
Set date and time manually
  : : Day Month Year
Select VPN Policy:
Use Default NTP Servers
Use Custom NTP Servers
  Server 1 Name / IP Address:
  Server 2 Name / IP Address:
Current Time: $| currentTime or ''|$