* libs/web: Fixed time hack

This commit is contained in:
Steven Barth 2008-06-07 08:22:35 +00:00
parent a7a2afdb0a
commit 09ecbe73ed

View 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