projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* libs/http: added http mime helper lib
[project/luci.git]
/
libs
/
http
/
luasrc
/
http
/
protocol
/
date.lua
diff --git
a/libs/http/luasrc/http/protocol/date.lua
b/libs/http/luasrc/http/protocol/date.lua
index
b3b9938
..
b9b55cc
100644
(file)
--- a/
libs/http/luasrc/http/protocol/date.lua
+++ b/
libs/http/luasrc/http/protocol/date.lua
@@
-192,7
+192,7
@@
function to_http(time)
return os.date( "%a, %d %b %Y %H:%M:%S GMT", time )
end
--- Compare to dates
+-- Compare t
w
o dates
function compare(d1, d2)
if d1:match("[^0-9]") then d1 = to_unix(d1) end