aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author0x00F6 <[email protected]>2013-01-22 17:41:00 +0400
committer0x00F6 <[email protected]>2013-01-22 17:41:00 +0400
commitebadc185c13e8ad2463db8bf8cdb204a9336efc5 (patch)
tree48112205ecd3f2f2252ffdd0eb12ce0f3b0b460b
parentfe462599c2c94ab01d3aa4aab383021b673596a2 (diff)
downloadcowboy-ebadc185c13e8ad2463db8bf8cdb204a9336efc5.tar.gz
cowboy-ebadc185c13e8ad2463db8bf8cdb204a9336efc5.tar.bz2
cowboy-ebadc185c13e8ad2463db8bf8cdb204a9336efc5.zip
Make cowboy_static use universal time
-rw-r--r--src/cowboy_static.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl
index 530c0f9..2c41c91 100644
--- a/src/cowboy_static.erl
+++ b/src/cowboy_static.erl
@@ -289,7 +289,7 @@ forbidden(Req, #state{fileinfo={ok, #file_info{access=Access}}}=State) ->
-spec last_modified(Req, #state{})
-> {calendar:datetime(), Req, #state{}} when Req::cowboy_req:req().
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.