Skip to content

Commit 559ad78

Browse files
committed
Make test work in other TZs
1 parent fd50e5d commit 559ad78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mvc/Mvc.Core/test/ModelBinding/Binders/DateTimeModelBinderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public async Task UsesSpecifiedStyleToParseModel()
184184
{
185185
// Arrange
186186
var bindingContext = GetBindingContext();
187-
var expected = new DateTime(2019, 06, 13, 19, 30, 4, 0, DateTimeKind.Local);
187+
var expected = DateTime.Parse("2019-06-14T02:30:04.0Z");
188188
bindingContext.ValueProvider = new SimpleValueProvider(new CultureInfo("fr-FR"))
189189
{
190190
{ "theModelName", "2019-06-14T02:30:04.0Z" }

0 commit comments

Comments
 (0)