datatheorem / TrustKit

Easy SSL pinning validation and reporting for iOS, macOS, tvOS and watchOS.
MIT License
2k stars 360 forks source link

If switch the calendar on your phone to the Japanese calendar, it may cause a date format error. #322

Open LuckyRoc opened 6 months ago

LuckyRoc commented 6 months ago

If you switch the calendar on your phone to the Japanese calendar, it may cause a date format error. In the code snippet domainFinalConfiguration[kTSKExpirationDate] = expirationDate;, the expiration date might appear as the year 4041, leading to the expiration time not taking effect.