Re: timesvc problem synchronizing time
- From: anonymous <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 13:11:02 -0700
I'd suggest the problem really is Get/SetSystemTime.
These functions are supposed to operate on UTC which doesn't involve DST,
but they are built off the filetime functions which are.
If you call GetSystemTime with and without AutoDST set, you get two
different times. That is not my understanding of UTC.
"John Spaith [MS]" wrote:
Follow up -- Andreas sent me the DEBUGOUT offline, the net result was that.
when he added the below registry setting everything just worked. I'll take
a look at the docs to see if there's anything we can do to clear this up in
the future.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Clock]
"AutoDST"=dword:1
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation
Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
"John Spaith [MS]" <jspaith@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:uhwLgoQXGHA.3492@xxxxxxxxxxxxxxxxxxxxxxx
Hmm... this isn't ringing any bells for me. Would it be possible for you
to build a debug OS (or at least a debug timesvc.dll), turn on full
debugzones in timesvc, and post the output here (or mail them to me - just
remove the "online." from my addr). A netmon or etherreal capture of the
packets being sent when CE does the timesvc request would also be helpful.
Sorry I'm not coming up with any magic bullets to help you here, Andy.
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation
Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
"Andy" <Andy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:05455942-035C-44C3-A547-95AD5FB7629A@xxxxxxxxxxxxxxxx
In my application i´m only calling GetSystemTime() and GetLocalTime().
I never call a SetTime function. Only the timesvc is the actor setting
the
time.
The timezone of the WinCE device (time client) is set to "W. Europe
Standard
Time" (also GMT+01:00).
The timezone of the time server is set to Berlin (GMT+01:00)
After timesvc has get the time from the server, a call of GetSystemTime()
returns the system time of the server - 1hour. And a call of
GetLocalTime()
returns the system time of the server.
(I set the time of the server to a different time as the time of the
client,
so i can detect, that the client has get the new time.)
Regards,
Andy
- Follow-Ups:
- Re: timesvc problem synchronizing time
- From: John Spaith [MS]
- Re: timesvc problem synchronizing time
- References:
- Re: timesvc problem synchronizing time
- From: John Spaith [MS]
- Re: timesvc problem synchronizing time
- From: John Spaith [MS]
- Re: timesvc problem synchronizing time
- From: Andy
- Re: timesvc problem synchronizing time
- From: John Spaith [MS]
- Re: timesvc problem synchronizing time
- From: John Spaith [MS]
- Re: timesvc problem synchronizing time
- Prev by Date: Re: CE 3.0 Dual NIC's Problem - NDIS Adapter Order Changes
- Next by Date: RE: LINKSYS WCF54G 802.11 Wireless Compact Flash & CE
- Previous by thread: Re: timesvc problem synchronizing time
- Next by thread: Re: timesvc problem synchronizing time
- Index(es):
Relevant Pages
|