summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-07 08:22:35 +0000
committerSteven Barth <steven@midlink.org>2008-06-07 08:22:35 +0000
commit09ecbe73ed51cdbbb204f323ad9207505680cd94 (patch)
treed9564f4ce975043c052ba010c03401a0431d4a56 /libs/web/luasrc
parenta7a2afdb0a51f28a716d34698152863c59eaf0ca (diff)
* libs/web: Fixed time hack
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r--libs/web/luasrc/dispatcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index 99ba9adca3..ff4170cb8a 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -30,7 +30,7 @@ require("luci.sys")
require("luci.fs")
-- Dirty OpenWRT fix
-if (os.time() < luci.fs.mtime(luci.sys.libpath() .. "/dispatcher.lua")) then
+if (os.time() < 1000000000) then
os.execute('date -s '..os.date('%m%d%H%M%Y', luci.fs.mtime(luci.sys.libpath() .. "/dispatcher.lua"))..' > /dev/null 2>&1')
end