s3policy icon indicating copy to clipboard operation
s3policy copied to clipboard

writePolicy expiration incorrect month (concats "1" instead of adding)

Open ctbucha opened this issue 8 years ago • 0 comments

The "expiration" field in the policy object of the writePolicy function concats a "1" to the month instead of adding. The fix would be to put dateExp.getUTCMonth() + 1 inside of parenthesis.

ctbucha avatar Aug 30 '16 21:08 ctbucha