2 Replies
      Latest reply on May 9, 2019 8:54 AM by anomaly86
      anomaly86 Level 1 Level 1 (0 points)

        How to reproduce the bug:

        1. Set iPhone Language to English.
        2. Set iPhone Language to Deutsch.
        3. Turn the "24-Hour Time" switch off.
        4. Turn the "24-Hour Time" switch on.
        5. Create the empty project with "Sing View App" template.
        6. Paste the following code: print(DateFormatter.localizedString(from: Date(), dateStyle: .none, timeStyle: .short)).
        7. Build and run the project. The output will be in 12-Hour Format. At this time the func is ignoring the "24-Hour Time" switch in the Settings.
        8. Set iPhone Language to English.
        9. Turn the "24-Hour Time" switch on.
        10. Set iPhone Language to Deutsch.
        11. Run the project. The output will be in 24-Hour Format. At this time the func result is correct.
        12. Turn the "24-Hour Time" switch off.
        13. Turn the "24-Hour Time" switch on.
        14. Run the project. The output will be in 12-Hour Format. At this time the func result is incorrect.