summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ntpc/luasrc/model/cbi/ntpc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-16 21:50:09 +0000
committerSteven Barth <steven@midlink.org>2008-08-16 21:50:09 +0000
commit32f2f12438f29ab2b0423d434f08e7bd2d1c755f (patch)
tree48b7357386e709657c315af5c5577077ec643423 /applications/luci-ntpc/luasrc/model/cbi/ntpc
parent8b2e83f2d5650acfe2b15a44cb125e28867beb98 (diff)
applications/luci-ntpc: Display current system time
Diffstat (limited to 'applications/luci-ntpc/luasrc/model/cbi/ntpc')
-rw-r--r--applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua2
-rw-r--r--applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua3
2 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
index d8b35c6e1b..2b4e2c23d2 100644
--- a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
+++ b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
@@ -17,6 +17,8 @@ m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
+s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
+
s:option(Value, "interval", translate("ntpc_interval"))
s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))
diff --git a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
index af36ca47cd..ecb098ab36 100644
--- a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
+++ b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
@@ -17,6 +17,9 @@ m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
+
+s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
+
s:option(Value, "interval", translate("ntpc_interval"))