* libs/web: Fixed time hack
authorSteven Barth <steven@midlink.org>
Sat, 7 Jun 2008 08:22:35 +0000 (08:22 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 7 Jun 2008 08:22:35 +0000 (08:22 +0000)
libs/web/luasrc/dispatcher.lua

index 99ba9ad..ff4170c 100644 (file)
@@ -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