Open hayashi311 opened 9 years ago
The fix looks good to me! I remember I had similar problems (I'm not using MTDate's ISO date formatter, but my own). Would be nice also to have a unit test which covers this. Let me know if you don't want or don't have a time to write a unit test for this and I'm happy to help with it :)
@yas375 Thank you for your offer. I'm trying to write a unit test. But it's difficult.
The following setting occurs this bug. And this pull request resolves the problem.
When I turn 24-hour time
on , It works.
This is hard to understand for me. Maybe NSDateFormatter is depends on iOS Date & Time setting.
The Problem is there is no "Date & Time" in the setting.app of iOS simulator.
@hayashi311 thanks for trying to test this! I'll try to figure this out on the weekend.
I'm sorry, I didn't get a chance to write a test for this yet.
@atomkirk I think if you could also verify the fix with manual steps, then it worth to merge in. There is similar report too #58
When
[NSLocale currentLocale]
is noten_*
(likeja_JP
) formatter can't parse ISO string.