luci-ntpc: Fixed option definitions
[project/luci.git] / applications / luci-ntpc / luasrc / model / cbi / ntpc / ntpcmini.lua
index af36ca4..3493e03 100644 (file)
@@ -17,7 +17,10 @@ m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
 
 s = m:section(TypedSection, "ntpclient", translate("general"))
 s.anonymous = true
-s:option(Value, "interval", translate("ntpc_interval"))
+
+s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
+
+s:option(Value, "interval", translate("ntpc_interval")).rmempty = true
 
 
 s3 = m:section(TypedSection, "ntpserver", translate("ntpc_timeserver"))