Cocoanetics / DTFoundation

Standard toolset classes and categories
BSD 2-Clause "Simplified" License
803 stars 237 forks source link

Set a locale for DTASN1Parser's date formatter #113

Closed beccadax closed 7 years ago

beccadax commented 7 years ago

Previously, DTASN1Parser could fail to parse dates when the user's locale normally used a 24-hour clock, but the user had manually switched to 12-hour time. Under these circumstances, the "HH" pattern tries to match 12-hour time, which fails. Explicitly setting a locale on the formatter corrects this problem.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.02%) to 42.992% when pulling 378b0cca33fd44e2b1a4d7255f1dbe4331f10071 on brentdax:outta-time into 0a5c71212867fe4a34c2b51ec29b809409c88a75 on Cocoanetics:develop.