This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Critical bug(?). Problem with Date from Model to View. Not using ISO international format. #4633
Comments
/cc @dougbu |
cc @javiercn We made a change not long ago where at least certain dates are rendered in the RFC3339. See these:
@javiercn any thoughts on this? |
Problem also appears when I decorate with |
@Bartmax are you using RC1? @javiercn's fixes were done in RC2. For RC1, you need to change the default rendering. In services.AddViewOptions(
options => options.HtmlHelperOptions.Html5DateRenderingMode = Html5DateRenderingMode.Rfc3339); Note this will probably not help the |
I'm using RC2. I'm seeing different results from what it's supposed to experience. I will try again just to be sure. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There's a problem with the input date, the datatype and the view.
Data does't get binded to the view correctly.
Even i'm using
en-us
culture mvc doesn't use the correct format. I'm pretty sure the ISO international format (yyyy-MM-dd) is accepted for every culture but mvc is not using that.Startup.cs
view.cshtml:
viewmodel.cs:
generated html:
rendering:
Chrome warning:
The text was updated successfully, but these errors were encountered: