diff --git a/lib/aws_auth.ex b/lib/aws_auth.ex index 32f6477..f504def 100644 --- a/lib/aws_auth.ex +++ b/lib/aws_auth.ex @@ -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 @@ -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