Permalink
Browse files

Fix rfc1123_date expects the date to be localized

  • Loading branch information...
1 parent 4ab0342 commit 96f3d849db37a9d58dbf6a750ab7a85a78514aa2 @choptastic choptastic committed Apr 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simple_bridge_util.erl
@@ -146,7 +146,7 @@ expires(seconds,X) when is_integer(X) ->
-spec make_expires_from_seconds(integer()) -> string().
make_expires_from_seconds(Seconds) ->
{NowMegaSec,NowSec,_} = now(),
- ExpiresDate = calendar:now_to_datetime({NowMegaSec,NowSec+Seconds,0}),
+ ExpiresDate = calendar:now_to_local_time({NowMegaSec,NowSec+Seconds,0}),
httpd_util:rfc1123_date(ExpiresDate).
-spec b2l(binary() | string()) -> string().

0 comments on commit 96f3d84

Please sign in to comment.