Skip to content

Commit

Permalink
expiration date format must not use 999Z use 000Z (#1740)
Browse files Browse the repository at this point in the history
999Z means padded zeroes are ignored however
000Z maintains the padded zeroes upto 3 elements
  • Loading branch information
harshavardhana committed Dec 13, 2022
1 parent 5382dd9 commit 7bae906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-policy.go
Expand Up @@ -25,7 +25,7 @@ import (
)

// expirationDateFormat date format for expiration key in json policy.
const expirationDateFormat = "2006-01-02T15:04:05.999Z"
const expirationDateFormat = "2006-01-02T15:04:05.000Z"

// policyCondition explanation:
// http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html
Expand Down

0 comments on commit 7bae906

Please sign in to comment.