SetTimeZoneInformation - Problem

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
 
P

Paul G. Tobey [eMVP]

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top