Permalink
Browse files

Fix local to universal handling

  • Loading branch information...
1 parent 010522e commit 317c97f4eb434ec962b004dc2444fc0e8bb01d5b @rnewson rnewson committed Aug 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/mochiweb/mochiweb_cookies.erl
  2. +1 −1 src/mochiweb/mochiweb_request.erl
@@ -51,7 +51,7 @@ cookie(Key, Value, Options) ->
undefined ->
calendar:universal_time();
LocalTime ->
- calendar:local_time_to_universal_time_dst(LocalTime)
+ erlang:localtime_to_universaltime(LocalTime)
end,
Age = case RawAge < 0 of
true ->
@@ -641,7 +641,7 @@ read_file_info(File) ->
end.
to_universal(LocalTime) ->
- calendar:local_time_to_universal_time_dst(LocalTime).
+ erlang:localtime_to_universaltime(LocalTime).
server_headers() ->
[{"Server", "MochiWeb/1.0 (" ++ ?QUIP ++ ")"},

0 comments on commit 317c97f

Please sign in to comment.