We have an Angular app talking to a Service Stack API (with .Net core). Our database stores some date fields as UTC. The Angular app converts local dates to UTC using moment.js and sends these date values to the API, but we noticed that when it hits the service, it is not UTC anymore.
We have not seen this issue with our mobile apps that use JsonServiceClient.
For e.g. if the Angular app sends the date in the format “2019-05-11T14:00:00Z”, it does not work at the API. However, a format like “2019-05-10 02:33:30” works as expected.
I noticed that there are some JsConfig settings like AssumeUtc, AlwaysUseUtc, SkipDateTimeConversion, AppendUtcOffset etc.
Could you please explain when these need to be used and why the APIs work differently when using JsonServiceClient vs. From Angular?
Really appreciate it.