mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
fix: Fixing format exception when parsing JSON DateTime with timezone info
This commit is contained in:
parent
bcf13ef972
commit
f36b9f7856
2 changed files with 6 additions and 10 deletions
|
|
@ -18,7 +18,11 @@ namespace ICD.Common.Utils.Tests.Json
|
|||
[Test]
|
||||
public void ParseDateTimeTest()
|
||||
{
|
||||
Assert.Inconclusive();
|
||||
const string dataA = "2016-02-26T19:24:59";
|
||||
const string dataB = "2019-04-01T12:41:15-04:00";
|
||||
|
||||
Assert.DoesNotThrow(() => JsonUtils.ParseDateTime(dataA));
|
||||
Assert.DoesNotThrow(() => JsonUtils.ParseDateTime(dataB));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue