1
Answer

DateTime is not reflected instantly when time zone changes

Jitendra Sahu

Jitendra Sahu

10y
1.7k
1
 

Currently my application is using DateTime.Now() to display the date and time. I observed that this method doesn't reflect the date time correctly when I change the time zone. It still displays the date and time of the previous time zone which was set to my appliaction.

Hence I rebooted my application and after that it displays the correct date and time based on the selected time zone.

Please help me in finding the correct API which reflects the date and time correctly if I change the time zone ( It should be same as reflecting correct date and time while changing the time zone in operating system clock)

Answers (1)