E
Empi
Hi,
I'm using SetLocalTime API in order to update an iPaq's clock according to
user's request.
Whenever the user updates the time, I should update another device's clock
using rs232.
I noticed the following:
When changing from summer to winter and the other way around (e.g. 1 sept 08
<==> 1 Jan 08),
DateTime.Now returns 1 hour less / more than the hour I set using the
setlocal time...
e.g. when moving from Sept to Jan it moves back 1 hour, and add an hour when
moving from Sept to Jan...
DateTime.Now that suppose to return local time as was set returns +- 1 hour.
More over, this is happening when Regional settings are set to Pacific US
(G.M.T -8) and doesn't happen
when using G.M.T + 2 (Cairo for example).
1- Why DateTime.Now return something else than what was set by setlocaltime?
2- How can I be sure that GMT + 2 will work for all dates?
3- I've read that SetLocalTime need to be called twice in order to fix a
relevant bug (it update daylight saving according to the original date and
not the new one). I tried it, but it didn;'t solve the problem.
Any clues?
Thank you very much.
Empi
I'm using SetLocalTime API in order to update an iPaq's clock according to
user's request.
Whenever the user updates the time, I should update another device's clock
using rs232.
I noticed the following:
When changing from summer to winter and the other way around (e.g. 1 sept 08
<==> 1 Jan 08),
DateTime.Now returns 1 hour less / more than the hour I set using the
setlocal time...
e.g. when moving from Sept to Jan it moves back 1 hour, and add an hour when
moving from Sept to Jan...
DateTime.Now that suppose to return local time as was set returns +- 1 hour.
More over, this is happening when Regional settings are set to Pacific US
(G.M.T -8) and doesn't happen
when using G.M.T + 2 (Cairo for example).
1- Why DateTime.Now return something else than what was set by setlocaltime?
2- How can I be sure that GMT + 2 will work for all dates?
3- I've read that SetLocalTime need to be called twice in order to fix a
relevant bug (it update daylight saving according to the original date and
not the new one). I tried it, but it didn;'t solve the problem.
Any clues?
Thank you very much.
Empi