OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Model binders should use site's culture to parse numbers and dates #1177

Open orchardbot opened 13 years ago

orchardbot commented 13 years ago

@bleroy created: https://orchard.codeplex.com/workitem/17348

Repro is to use a double or DateTime property on a part and use the default binders. The site's culture should be used but it's using the inveriant culture instead.

orchardbot commented 12 years ago

@bleroy commented:

Model binders should use the thread's culture for POST data. Now it seems like we are not setting the thread's culture and we probably should, but this is too big a change for 1.4.