tikhop / TPInAppReceipt

Reading and Validating In App Purchase Receipt Locally.
MIT License
636 stars 95 forks source link

Fix date formatter #60

Closed motocodeltd closed 4 years ago

motocodeltd commented 4 years ago

The date formatter format used is not correct. I get an expiration date of "2021-08-06T22:08:32+0100) which is a valid rfc3339 string but is not parsable due to the timezone. Apple recommends using ISO8601DateFormatter, which is what this patch does.