Fix test that fails on machine using en-GB (#24704)
Fix test that fails due to the month and date being swapped when run on a machine configured to use UK English.
This commit is contained in:
parent
3e61104425
commit
288bb9622d
|
|
@ -4,6 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Buffers;
|
using System.Buffers;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
@ -310,7 +311,7 @@ namespace Microsoft.AspNetCore.SignalR.Common.Tests.Internal.Protocol
|
||||||
IntProp = 43,
|
IntProp = 43,
|
||||||
DoubleProp = 3.14159,
|
DoubleProp = 3.14159,
|
||||||
StringProp = "test",
|
StringProp = "test",
|
||||||
DateTimeProp = DateTime.Parse("6/3/2019 10:00:00 PM")
|
DateTimeProp = DateTime.Parse("6/3/2019 10:00:00 PM", CultureInfo.InvariantCulture)
|
||||||
}, streamItemMessage.Item);
|
}, streamItemMessage.Item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue