SetTimeZoneInformation - Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am using SetTimeZoneInformation to set the TimeZone in the Pocket PC, but
after setting to new timezone using the code, when I tried to get the
timezone, it is giving the old timezone (means, sest timezoneinformation
didn't update the .Net clock) what should I do to update the .Net CF clock
(get the new timezone informatio)n after setting the TimeZone.

thanks!!
-Jay
 
Yes, I seem to remember that the time information is only loaded by the
run-time for .NET CF when the application starts, so you didn't get the
offset, say, from GMT updated just because you made the change to the OS
settings. That was back in 1.0, but it's certainly quite possible that it's
still around that way today.

I think that you might want to look at this thread from the archives:

http://groups.google.com/group/micr...ion+system.time&rnum=1&hl=en#077e80c615506793

and this one:

http://groups.google.com/group/micr...ion+system.time&rnum=2&hl=en#96b407ed59c6472a

Paul T.
 
Thank you, Paul.

-Jay
Paul G. Tobey said:
Yes, I seem to remember that the time information is only loaded by the
run-time for .NET CF when the application starts, so you didn't get the
offset, say, from GMT updated just because you made the change to the OS
settings. That was back in 1.0, but it's certainly quite possible that it's
still around that way today.

I think that you might want to look at this thread from the archives:

http://groups.google.com/group/micr...ion+system.time&rnum=1&hl=en#077e80c615506793

and this one:

http://groups.google.com/group/micr...ion+system.time&rnum=2&hl=en#96b407ed59c6472a

Paul T.
 
Back
Top