-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
StringTypeConverterBase<>
does not pass along the incoming culture
to its abstract Parse
method. It should, and derived types should pass it along to the DateOnly.Parse
and TimeOnly.Parse
methods.
Because of the current behavior, properties such as RangeAttribute.ConvertValueInInvariantCulture and RangeAttribute.ParseLimitsInInvariantCulture have no effect when using ASP.NET ModelState binding/validation. The parsing happens in the "current" culture, which is the OS-level regional settings of the web server that the application is running on. It should be possible to avoid that by parsing using the invariant culture. That way, the web application can be deployed to servers all over the world and behave the same.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working