Permalink
Browse files

Fixing aws signing bug with double digit months. Fixes #30

  • Loading branch information...
1 parent 7030d31 commit 293917f7447eac4c6e7a61007632d1e02632c4f0 Ryan Fitzgerald committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dynode/aws-signer.js
View
@@ -62,7 +62,7 @@ Signer._digest = function(str) {
};
Signer._requestDate = function(date) {
- return date.getUTCFullYear() +
+ return date.getUTCFullYear().toString() +
pad(date.getUTCMonth()+1) +
pad(date.getUTCDate())+'T' +
pad(date.getUTCHours()) +
@@ -79,7 +79,7 @@ function hex(str) {
}
function today(date) {
- return date.getUTCFullYear() + pad(date.getUTCMonth()+1) + pad(date.getUTCDate());
+ return date.getUTCFullYear().toString() + pad(date.getUTCMonth()+1) + pad(date.getUTCDate());
}
function hmac(key, value) {

0 comments on commit 293917f

Please sign in to comment.