suzuki-0000 / CountdownLabel

Simple countdown UILabel with morphing animation, and some useful function.
MIT License
1.01k stars 192 forks source link

Fixed 24H/12H time format due to unforced locale #28

Closed ljesus closed 6 years ago

ljesus commented 6 years ago

When counting down with 12H time format, if counting down less than an hour it would appear as "12:05:00 AM" instead of "00:05:00", even forcing time format to "HH:mm:ss".

The time format was being ignored since the phone had an unconpatible locale with this time format. Using en_US_POSIX locale fixes this issue.

Reference from: https://developer.apple.com/library/content/qa/qa1480/_index.html

suzuki-0000 commented 6 years ago

Thanks for your pull request! LGTM