Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public override void WriteValue(decimal value)
/// <param name="value">The <see cref="DateTime"/> value to write.</param>
public override void WriteValue(DateTime value)
{
this.WriteValue(value.ToString());
Comment thread
FabianMeiswinkel marked this conversation as resolved.
this.WriteValue(value.ToString("O"));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void AllPrimitivesObjectTest()
new JProperty("string", "XCPCFXPHHF"),
new JProperty("boolean", true),
new JProperty("null", null),
new JProperty("datetime", "2526-07-11T18:18:16.4520716"),
new JProperty("datetime", DateTime.Parse("2526-07-11T18:18:16.4520716")),
Comment thread
FabianMeiswinkel marked this conversation as resolved.
new JProperty("spatialPoint", new JObject(
new JProperty("type", "Point"),
new JProperty("coordinate", new double[] { 118.9897, -46.6781 }))),
Expand Down
Loading