ServiceStack version 8.3.0
We have an POCO with a list of objects. We store the POCO and the list gets serialized into a field with DateTime data stored in UTC.
For example:
class A {
public string Location { get; set; }
public DateTime Start { get; set; } // Stores fine, appears to deserialize on the client incorrectly
}
class B {
public B() {
AList = new List<A>();
}
public string Code { get; set; }
public DateTime WhenDispatched { get; set; } // No issues with this on the client or server side
public List<A> AList { get; set; }
}
When we retrieve a record of B from the service, it contains the deserialized data of List<A>
and the DateTime values are in UTC as stored in the database.
When the WebServiceClient returns the response, that deserialized data of List<A>
now contains DateTime values in Local, not in UTC.
All other data DateTime handling is fine. i.e. We send, store, and receive in UTC always, leaving it up to our applications to manage how that data gets presented.
We tried using the same JsConfig.Init()
content before client instantiation that the hosts use with no change behavior.
Any suggestions on a means to address this issue?