Skip to content

Commit

Permalink
fix: convert apple ts to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Jan 14, 2025
1 parent e304e13 commit 493895f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/userservice/appsubscription_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func verifyApple(apple *api.StoreClient, receipt *types.PremiumData) (*VerifyRes
response.RejectReason = "invalid_expires_date"
return response, nil
}
expiresDateUint64 := int64(math.Round(expiresDateFloat))
expiresDateUint64 := int64(math.Round(expiresDateFloat)) / 1000

response.Valid = true
response.ExpirationDate = expiresDateUint64
Expand Down

0 comments on commit 493895f

Please sign in to comment.