Skip to content

Commit

Permalink
* libs/web: Fixed time hack
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyx committed Jun 7, 2008
1 parent a7a2afd commit 09ecbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/web/luasrc/dispatcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 09ecbe7

Please sign in to comment.