I am running a .net core api project locally on my windows machine, local time is utc +3. In the response header returned from the requests, the results are returned according to utc + 0.
This time difference causes me to get an error when validating my jwt tokens, I can never validate them.
For example:
local time : 15:45:51
(kestrel) .net time : 12:45:51
I tried TimeZoneInfo but it didn’t work. It did not make sense for me to make transactions by seeing the time difference when I gave UTCnow while specifying the token durations. I want to see and follow these transactions in my own time zone.
Is it possible to match the system time in .net with my local time?