applications/luci-ntpc: Display current system time
authorSteven Barth <steven@midlink.org>
Sat, 16 Aug 2008 21:50:09 +0000 (21:50 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 16 Aug 2008 21:50:09 +0000 (21:50 +0000)
applications/luci-ntpc/luasrc/i18n/ntpc.de.lua
applications/luci-ntpc/luasrc/i18n/ntpc.en.lua
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua

index 89a8ba1ffbf3c860b56ed8ed6476151c4420e28d..6d067ad7e3d59a20819d77e4d0a0757f5f956c8a 100644 (file)
@@ -5,4 +5,5 @@ ntpc_interval = "Aktualisierungsintervall (in s)"
 ntpc_count = "Anzahl der Zeitmessungen"
 ntpc_count_desc = "leer = unendlich"
 ntpc_drift = "Zeitgeberjustierung"
-ntpc_drift_freq = "Frequenzabweichung"
\ No newline at end of file
+ntpc_drift_freq = "Frequenzabweichung"
+ntpc_current = "Aktuelle Systemzeit"
\ No newline at end of file
index 411b33828a634ba50709e580c26b5e75b6b96fa0..58bf7b3ea7bd469b0125a59bf907e19b8d934cc8 100644 (file)
@@ -5,4 +5,5 @@ ntpc_interval = "Update Interval (in s)"
 ntpc_count = "Count of Time Measurements"
 ntpc_count_desc = "empty = infinite"
 ntpc_drift = "Clock Adjustment"
-ntpc_drift_freq = "Offset Frequency"
\ No newline at end of file
+ntpc_drift_freq = "Offset Frequency"
+ntpc_current = "Current system time"
\ No newline at end of file
index d8b35c6e1b32bf5620f7ab97b4e1b0b0df9df68a..2b4e2c23d278aca066253842c87bcdce238bbe3c 100644 (file)
@@ -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"))
 
index af36ca47cd94f05f7d444c5c195512e175f65aac..ecb098ab366417979f47fe6eff372ef8f302ab53 100644 (file)
@@ -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"))