How to maintain a second clock with desired time in WinForms app
I have a Windows Forms application using .Net 7, EF Core 7, SQL Server 2022. There are few activities in the application where accurate date/time is critical. I can’t restrict Windows users changing system date/time on client machines. After login in app, I was thinking of maintaining DB Server time in my app so whenever i need date/time, i could get server time locally, instead of making hundreds of calls to get server time. In can’t maintain a delta (difference between local time and server time) since it would be useless because user can change local date/time. DB server is a machine with quite controlled access so we can say, server date/time is accurate. Plz suggest solution or work around.