Search the forum for “fixed format dates” and you’ll get a few hits explaining the issue and a couple ways to fix it.
Among the available solutions, I recommend just switching to ISO8601DateFormatter instead of trying to use the original localization-focused DateFormatter.
Topic:
Programming Languages
SubTopic:
Swift
Tags: