I'm using Entity Framework and ASP.NET Core Web API as a back end of my LoB app. In the server side, I want to store all
DateTimes as UTC, while in the client side I want them to be displayed in local/preset timezone.
I'm using shared entities between the client and server.
I'd like to ask you what can I do in order to:
DateTimes to UTC when storing it
DateTimes, I obviously prefer an automated and generalized approach, rather than messing with each property individually
Any input, thoughts, links and ideas will be really appreciated.
Thank you very much ya'll!