diff --git a/src/Microsoft.AspNetCore.Mvc.TagHelpers/InputTagHelper.cs b/src/Microsoft.AspNetCore.Mvc.TagHelpers/InputTagHelper.cs index 8a95194d17..dfc7f42b31 100644 --- a/src/Microsoft.AspNetCore.Mvc.TagHelpers/InputTagHelper.cs +++ b/src/Microsoft.AspNetCore.Mvc.TagHelpers/InputTagHelper.cs @@ -32,7 +32,7 @@ public class InputTagHelper : TagHelper { "Url", "url" }, { "EmailAddress", "email" }, { "Date", "date" }, - { "DateTime", "datetime" }, + { "DateTime", "datetime-local" }, { "DateTime-local", "datetime-local" }, { "Time", "time" }, { nameof(Byte), "number" }, diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewFeatures/TemplateRenderer.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewFeatures/TemplateRenderer.cs index 9ab89c98d1..9d2ee0578a 100644 --- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewFeatures/TemplateRenderer.cs +++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ViewFeatures/TemplateRenderer.cs @@ -48,7 +48,7 @@ public class TemplateRenderer { "Text", DefaultEditorTemplates.StringTemplate }, { "Url", DefaultEditorTemplates.UrlInputTemplate }, { "Date", DefaultEditorTemplates.DateInputTemplate }, - { "DateTime", DefaultEditorTemplates.DateTimeInputTemplate }, + { "DateTime", DefaultEditorTemplates.DateTimeLocalInputTemplate }, { "DateTime-local", DefaultEditorTemplates.DateTimeLocalInputTemplate }, { "Time", DefaultEditorTemplates.TimeInputTemplate }, { typeof(byte).Name, DefaultEditorTemplates.NumberInputTemplate }, diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/HtmlHelperOptionsTest.cs b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/HtmlHelperOptionsTest.cs index 8354547edf..0f8cc97ea1 100644 --- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/HtmlHelperOptionsTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/HtmlHelperOptionsTest.cs @@ -28,7 +28,7 @@ public async Task AppWideDefaultsInViewAndPartialView() An error occurred.
-
+
MySummary