Skip to content

Commit 456f9b2

Browse files
authored
fix: explicitly use UTC for expiration field when marshaling PostPolicy (#2135)
1 parent beae4df commit 456f9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

post-policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func (p PostPolicy) String() string {
417417

418418
// marshalJSON - Provides Marshaled JSON in bytes.
419419
func (p PostPolicy) marshalJSON() []byte {
420-
expirationStr := `"expiration":"` + p.expiration.Format(expirationDateFormat) + `"`
420+
expirationStr := `"expiration":"` + p.expiration.UTC().Format(expirationDateFormat) + `"`
421421
var conditionsStr string
422422
conditions := []string{}
423423
for _, po := range p.conditions {

0 commit comments

Comments
 (0)