The reason for the problem was because the string format was different from the dateFormatter.formatOptions.
The right one should be:
dateFormatter.formatOptions = [.withInternetDateTime]
The reason for the problem was because the string format was different from the dateFormatter.formatOptions.
The right one should be:
dateFormatter.formatOptions = [.withInternetDateTime]