mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Make cowboy_static use universal time
This commit is contained in:
parent
fe462599c2
commit
ebadc185c1
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ forbidden(Req, #state{fileinfo={ok, #file_info{access=Access}}}=State) ->
|
||||||
-spec last_modified(Req, #state{})
|
-spec last_modified(Req, #state{})
|
||||||
-> {calendar:datetime(), Req, #state{}} when Req::cowboy_req:req().
|
-> {calendar:datetime(), Req, #state{}} when Req::cowboy_req:req().
|
||||||
last_modified(Req, #state{fileinfo={ok, #file_info{mtime=Modified}}}=State) ->
|
last_modified(Req, #state{fileinfo={ok, #file_info{mtime=Modified}}}=State) ->
|
||||||
{Modified, Req, State}.
|
{erlang:localtime_to_universaltime(Modified), Req, State}.
|
||||||
|
|
||||||
|
|
||||||
%% @private Generate the ETag header value for this file.
|
%% @private Generate the ETag header value for this file.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue