Polish "Support iso-offset for date-time and time formatting with MVC"

See gh-21630
This commit is contained in:
Andy Wilkinson
2020-06-30 17:25:16 +01:00
parent c3b1172aea
commit 9230ea4ab7
3 changed files with 30 additions and 13 deletions

View File

@@ -107,7 +107,7 @@ public class DateTimeFormatters {
}
private static boolean isIsoOffset(String pattern) {
return "isooffset".equalsIgnoreCase(pattern);
return "isooffset".equalsIgnoreCase(pattern) || "iso-offset".equalsIgnoreCase(pattern);
}
}

View File

@@ -1966,8 +1966,8 @@
"description": "ISO-8601 extended local date-time format."
},
{
"value": "isooffset",
"description": "ISO Offset local date-time format."
"value": "iso-offset",
"description": "ISO offset date-time format."
}
],
"providers": [
@@ -1988,8 +1988,8 @@
"description": "ISO-8601 extended local time format"
},
{
"value": "isooffset",
"description": "ISO Offset local time format."
"value": "iso-offset",
"description": "ISO offset time format."
}
],
"providers": [