Why OData returns Json DataTime values in UTC (like "2019-02-15T17:29:38.583Z"), while an endpoint that just returns an entity, the datetime misses the 'Z' (like "2019-02-15T19:19:04.783"). There is no custom formmating or serialization for Json serializer, there is no use of settings like DateTimeZoneHandling.
DateTime objects are save in DB as UTC, in C# code, the DTO contains those values correctly and the Kind is unespecified as in OData as in entity.
Why is this behavior? I need to Json output returning datetimes as UTC (with Z). Any explanation and setting for achiving this is welcome.
Thanks.
Framework version: 4.5.2