Time Patern not right in iOS

This block in Android put the week number day right. But in iOS put the year. For ISO standard.

This claim makes no sense to me. Both the Java DateTimeFormatter and the Swift DateFormatter (which uses the Unicode assigned values) reserve 'u' for year.

If you want the day of the week as a number, then you probably want to use 'e'.

The problem is generated for this AI2 documentation about "SimpelDateFormat":

Here says that the pattern for a Week Day Number is "u": And "E" is for a Week Day Name.
https://developer.android.com/reference/java/text/SimpleDateFormat