modules/freifunk: Show date/time in a bit nicer format (#184)
authorManuel Munz <freifunk@somakoma.de>
Mon, 4 Apr 2011 11:50:09 +0000 (11:50 +0000)
committerManuel Munz <freifunk@somakoma.de>
Mon, 4 Apr 2011 11:50:09 +0000 (11:50 +0000)
modules/freifunk/luasrc/controller/freifunk/freifunk.lua
modules/freifunk/luasrc/view/freifunk/public_status.htm

index e8cd19b..9f7632f 100644 (file)
@@ -294,7 +294,7 @@ function public_status_json()
        end
        
        rv[#rv+1] = {
-               time = os.date("%c"),
+               time = os.date("%a, %d %b %Y %H:%M:%S UTC"),
                uptime = twa.date_format(tonumber(sys.uptime())),
                load = string.format("%.2f, %.2f, %.2f", load1, load5, load15),
                mem = mem,
index 1698e9c..fe56034 100644 (file)
@@ -6,7 +6,7 @@ local twa = require "luci.tools.webadmin"
 -- System
 local system, model, memtotal, memcached, membuffers, memfree, bogomips = sys.sysinfo()
 local uptime = twa.date_format(tonumber(sys.uptime()))
-local_time = os.date("%c")
+local_time = os.date("%a, %d %b %Y %H:%M:%S UTC")
 local load1, load5, load15 = sys.loadavg()
 local load = string.format("%.2f, %.2f, %.2f", load1, load5, load15)