I created a new MVC4 project in VS2012 with the basic template. I created a model class with a DateTime property. I added a default controller that sets the property to DateTime.Today and a default view that displays the editor for this property. I also included the jqueryval script bundle in my layout, they were in my project by default. When I run the project, there is a textbox with the value "2013.12.12. 0:00:00". But when I press submit, it says its invalid.
Comments: I updated all package versions as Doug suggested in his private message and I'm attaching a repro solution here, but I also uploaded it here just in case: http://joco.name/repro1503.zip When the culture is hu-HU, I get a client side validation error, the textbox turns red when I press submit. It works when the culture is en-US. The date formats are different of course. I explicitly set the culture in web.config to make sure you can reproduce it, but that line wasn't there in the web.config, it is my default culture. There are no validation attributes or anything extra, just what I wrote originally: a simple model with a date value, and the unobtrusive validation is broken by default. By the way, I just noticed this: when I change the value of the property during the POST, DisplayFor displays the changed value, but EditorFor still displays the original POST'ed value, is that normal?
Comments: I updated all package versions as Doug suggested in his private message and I'm attaching a repro solution here, but I also uploaded it here just in case: http://joco.name/repro1503.zip When the culture is hu-HU, I get a client side validation error, the textbox turns red when I press submit. It works when the culture is en-US. The date formats are different of course. I explicitly set the culture in web.config to make sure you can reproduce it, but that line wasn't there in the web.config, it is my default culture. There are no validation attributes or anything extra, just what I wrote originally: a simple model with a date value, and the unobtrusive validation is broken by default. By the way, I just noticed this: when I change the value of the property during the POST, DisplayFor displays the changed value, but EditorFor still displays the original POST'ed value, is that normal?