Jitendra Sahu

Jitendra Sahu

  • NA
  • 1
  • 3.2k

DateTime is not reflected instantly when time zone changes

Dec 12 2013 4:52 AM
 

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)