-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with date starting on month 10 #30
Comments
This is a major bug and here are more details. i have been using dynode for a few months now to build a few node.js using this function as an example to explain the bug: Signer._requestDate = function(date) { each of these date.get*() functions return components that need to be function pad(n) { once the date becomes a double-digit number, it does not get converted { if i understand the impact of this bug correctly, this will fortunately a fix can be made fairly simply by adding an explicitly Signer._requestDate = function(date) { function today(date) { |
actually on further review i think the solution proposed by psprindys is actually better. it ensures that pad() always returns a string, which is really a good post-condition for it. could prevent future similar bugs from further use of pad(). |
Starting from 2012-10-01 we get the following error:
Please note that the date is 202201 instead of 20121001. This is a variable type isue - number vs string - in aws-signer.js lines 65-70 and line 90.
To resolve, change line 90 to:
The text was updated successfully, but these errors were encountered: