intelligentplant / AppStoreConnect.Adapters

Allows Intelligent Plant App Store Connect to query 3rd party systems
https://appstore.intelligentplant.com
MIT License
0 stars 0 forks source link

Enforce UTC conversion when serializing DateTime instances #394

Closed wazzamatazz closed 2 months ago

wazzamatazz commented 2 months ago

This PR ensures that DateTime instances are always converted to UTC during JSON serialization/deserialization when using either System.Text.Json or Newtonsoft. It also ensures that the gRPC adapter proxy always converts DateTime instances in query objects to UTC when creating equivalent protobuf request types.

TagValue, EventMessageBase and TagValueAnnotation all ensure that DateTime objects passed to their constructors are converted to UTC.