Skip to content

Commit

Permalink
Merge pull request #24 from radar/master
Browse files Browse the repository at this point in the history
Use Timex.DateTime.now, rather than Timex.DateTime.today
  • Loading branch information
bryanjos authored Oct 5, 2016
2 parents c6ecad2 + e3d3353 commit 9430fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws_auth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule AWSAuth do
end

def sign_url(access_key, secret_key, http_method, url, region, service, headers) do
sign_url(access_key, secret_key, http_method, url, region, service, headers, Timex.DateTime.today)
sign_url(access_key, secret_key, http_method, url, region, service, headers, Timex.DateTime.now)
end

def sign_url(access_key, secret_key, http_method, url, region, service, headers, request_time) do
Expand Down Expand Up @@ -74,7 +74,7 @@ defmodule AWSAuth do
end

def sign_authorization_header(access_key, secret_key, http_method, url, region, service, headers, payload) do
sign_authorization_header(access_key, secret_key, http_method, url, region, service, headers, payload, Timex.DateTime.today)
sign_authorization_header(access_key, secret_key, http_method, url, region, service, headers, payload, Timex.DateTime.now)
end

def sign_authorization_header(access_key, secret_key, http_method, url, region, service, headers, payload, request_time) do
Expand Down

0 comments on commit 9430fbb

Please sign in to comment.