Set Time Zone

  • Thread starter Thread starter Derck
  • Start date Start date
D

Derck

Hello,

I am wondering.. I searched the news here and google, but can't find it how
to set the current timezone on a pocket 2002 with .net compact framework..

Does someone knows where to look or has a solution for me?

Thanks in advance,

Derck
 
Keep in mind that when you set the timezone info, DateTime.Now will no
longer return the correct time. P/Invoke GetLocalTime instead.
 
Thanks guys,

I am programming on a Symbol device with pocket pc 2002 and the user doesn't
see the start menu. I programmed in the registry that my program starts and
can't be shutdown, so after a cold boot I have to take care of the
settings..

I played with the system.time api calls and I discoverd that when I set it
to GMT+1 it doesn't give me back the correct time. I think it's always GMT??

Greets!
 
Thanks guys,

I am programming on a Symbol device with pocket pc 2002 and the user doesn't
see the start menu. I programmed in the registry that my program starts and
can't be shutdown, so after a cold boot I have to take care of the
settings..

I played with the system.time api calls and I discoverd that when I set it
to GMT+1 it doesn't give me back the correct time. I think it's always GMT??

Greets!
 
You need to be a little more specific:

When you set it to GMT+1 how, exactly (code)?

It's giving you back the time from what call?

As Chris mentioned, DateTime.Now() doesn't work correctly, in this
situation.

Also, why would you need to set the timezone yourself (why not just set it
once when the device is 'installed' and leave it alone?). Is the device
traversing timezones as it moves around or something?

Paul T.
 
Back
Top