|
|
|
start date: Wed, 25 Jul 2007 16:37:51 +0200,
posted on: microsoft.public.dotnet.framework.compactframework
back
| Thread Index |
|
1
Marcel Ruff
|
|
2
Jeff Newman
|
|
3
Marcel Ruff
|
|
4
Jeff Newman
|
|
5
Paul G. Tobey [eMVP] p space tobey no spam AT no instrument no spam DOT com
|
|
6
Paul G. Tobey [eMVP] p space tobey no spam AT no instrument no spam DOT com
|
|
7
Marcel Ruff
|
|
8
Jeff Newman
|
SetSystemTime() behaviour: Timezone jump
Hi,
on my two PDAs I get the current UTC time from a server (for testing purposes the server
runs 7 minutes too fast) and i'm setting it with SetSystemTime().
The time is correctly set on my PDAs (as displayed on the PDA desktop),
(C#->Coredll.dll, Windows CE 5, CF 2)
but:
1) On my Psion after 30 sec the original Dublin GMT Timezone jumps to US Western (GMT-5).
How can this be, i don't have any code setting the timestamp after 30sec?
2) On my IPAQ it is set correctly as well, but after 30 sec it jumps back
to the original time (here the Timezone GMT-1 remains OK).
What could be the reason for such a behaviour?
Thanks
Marcel
Date:Wed, 25 Jul 2007 16:37:51 +0200
Author:
|
Re: SetSystemTime() behaviour: Timezone jump
On Jul 25, 10:37 am, Marcel Ruff wrote:
> Hi,
>
> on my two PDAs I get the current UTC time from a server (for testing purposes the server
> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>
> The time is correctly set on my PDAs (as displayed on the PDA desktop),
> (C#->Coredll.dll, Windows CE 5, CF 2)
> but:
>
> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps to US Western (GMT-5).
> How can this be, i don't have any code setting the timestamp after 30sec?
>
> 2) On my IPAQ it is set correctly as well, but after 30 sec it jumps back
> to the original time (here the Timezone GMT-1 remains OK).
>
> What could be the reason for such a behaviour?
>
> Thanks
> Marcel
Windows runs an NTP client on its own to keep the clock synchronized.
If you want to sync with a non-standard time server, you need to
disable this. Try running "services list" from the command line, then
disable the service listed as "timesvc". You could also just change
the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
be some non-existent server, though I would recommend disabling the
service entirely.
Date:Wed, 25 Jul 2007 14:53:00 -0000
Author:
|
Re: SetSystemTime() behaviour: Timezone jump
Thanks Jeff for this insight.
I have suspected some daemon already.
HP IPAQ hw6910:
Unfortunately i cant find the mentioned registry entry (using total commander)
and on my two dos boxes (PocketCmd and PocketConsole) the command
'services' is unknown.
Any more ideas how to cope with my situation?
Thanks
Marcel
> On Jul 25, 10:37 am, Marcel Ruff wrote:
>> Hi,
>>
>> on my two PDAs I get the current UTC time from a server (for testing purposes the server
>> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>>
>> The time is correctly set on my PDAs (as displayed on the PDA desktop),
>> (C#->Coredll.dll, Windows CE 5, CF 2)
>> but:
>>
>> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps to US Western (GMT-5).
>> How can this be, i don't have any code setting the timestamp after 30sec?
>>
>> 2) On my IPAQ it is set correctly as well, but after 30 sec it jumps back
>> to the original time (here the Timezone GMT-1 remains OK).
>>
>> What could be the reason for such a behaviour?
>>
>> Thanks
>> Marcel
>
> Windows runs an NTP client on its own to keep the clock synchronized.
> If you want to sync with a non-standard time server, you need to
> disable this. Try running "services list" from the command line, then
> disable the service listed as "timesvc". You could also just change
> the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
> be some non-existent server, though I would recommend disabling the
> service entirely.
>
Date:Thu, 26 Jul 2007 12:10:16 +0200
Author:
|
Re: SetSystemTime() behaviour: Timezone jump
On Jul 26, 6:10 am, Marcel Ruff wrote:
> Thanks Jeff for this insight.
>
> I have suspected some daemon already.
>
> HP IPAQ hw6910:
> Unfortunately i cant find the mentioned registry entry (using total commander)
> and on my two dos boxes (PocketCmd and PocketConsole) the command
> 'services' is unknown.
>
> Any more ideas how to cope with my situation?
>
> Thanks
> Marcel
>
> > On Jul 25, 10:37 am, Marcel Ruff wrote:
> >> Hi,
>
> >> on my two PDAs I get the current UTC time from a server (for testing purposes the server
> >> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>
> >> The time is correctly set on my PDAs (as displayed on the PDA desktop),
> >> (C#->Coredll.dll, Windows CE 5, CF 2)
> >> but:
>
> >> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps to US Western (GMT-5).
> >> How can this be, i don't have any code setting the timestamp after 30sec?
>
> >> 2) On my IPAQ it is set correctly as well, but after 30 sec it jumps back
> >> to the original time (here the Timezone GMT-1 remains OK).
>
> >> What could be the reason for such a behaviour?
>
> >> Thanks
> >> Marcel
>
> > Windows runs an NTP client on its own to keep the clock synchronized.
> > If you want to sync with a non-standard time server, you need to
> > disable this. Try running "services list" from the command line, then
> > disable the service listed as "timesvc". You could also just change
> > the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
> > be some non-existent server, though I would recommend disabling the
> > service entirely.
Have you tried searching your device for services.exe? If it doesn't
exist, I'm not sure what else could be changing your clock. You could
also try using IOCTL to control the service, but again it it wouldn't
be running if services.exe isn't around. See
http://msdn2.microsoft.com/en-us/library/ms881011.aspx.
Date:Thu, 26 Jul 2007 11:56:05 -0700
Author:
|
Re: SetSystemTime() behaviour: Timezone jump
Would the time service change the *zone*? Seems like it would use the zone
to figure out the offset from GMT that the server that it's connecting to is
returning, but it seems strange that it would change the zone to match the
server. That would prevent you, unless you're in Mountain time, for
example, from syncing to NIST.
This sounds to me like some other application changing the time/zone, maybe
to try to sync with the cellular network. It's possible that the cellular
network isn't sending the right time zone, I guess, or maybe it is, but not
the zone that you want.
Paul T.
"Jeff Newman" wrote in message
news:1185476165.890942.237000@o61g2000hsh.googlegroups.com...
> On Jul 26, 6:10 am, Marcel Ruff wrote:
>> Thanks Jeff for this insight.
>>
>> I have suspected some daemon already.
>>
>> HP IPAQ hw6910:
>> Unfortunately i cant find the mentioned registry entry (using total
>> commander)
>> and on my two dos boxes (PocketCmd and PocketConsole) the command
>> 'services' is unknown.
>>
>> Any more ideas how to cope with my situation?
>>
>> Thanks
>> Marcel
>>
>> > On Jul 25, 10:37 am, Marcel Ruff wrote:
>> >> Hi,
>>
>> >> on my two PDAs I get the current UTC time from a server (for testing
>> >> purposes the server
>> >> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>>
>> >> The time is correctly set on my PDAs (as displayed on the PDA
>> >> desktop),
>> >> (C#->Coredll.dll, Windows CE 5, CF 2)
>> >> but:
>>
>> >> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps to
>> >> US Western (GMT-5).
>> >> How can this be, i don't have any code setting the timestamp after
>> >> 30sec?
>>
>> >> 2) On my IPAQ it is set correctly as well, but after 30 sec it jumps
>> >> back
>> >> to the original time (here the Timezone GMT-1 remains OK).
>>
>> >> What could be the reason for such a behaviour?
>>
>> >> Thanks
>> >> Marcel
>>
>> > Windows runs an NTP client on its own to keep the clock synchronized.
>> > If you want to sync with a non-standard time server, you need to
>> > disable this. Try running "services list" from the command line, then
>> > disable the service listed as "timesvc". You could also just change
>> > the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
>> > be some non-existent server, though I would recommend disabling the
>> > service entirely.
>
> Have you tried searching your device for services.exe? If it doesn't
> exist, I'm not sure what else could be changing your clock. You could
> also try using IOCTL to control the service, but again it it wouldn't
> be running if services.exe isn't around. See
> http://msdn2.microsoft.com/en-us/library/ms881011.aspx.
>
Date:Thu, 26 Jul 2007 12:18:09 -0700
Author:
|
Re: SetSystemTime() behaviour: Timezone jump
On Jul 26, 3:18 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
> Would the time service change the *zone*? Seems like it would use the zone
> to figure out the offset from GMT that the server that it's connecting to is
> returning, but it seems strange that it would change the zone to match the
> server. That would prevent you, unless you're in Mountain time, for
> example, from syncing to NIST.
>
> This sounds to me like some other application changing the time/zone, maybe
> to try to sync with the cellular network. It's possible that the cellular
> network isn't sending the right time zone, I guess, or maybe it is, but not
> the zone that you want.
>
> Paul T.
>
> "Jeff Newman" wrote in message
>
> news:1185476165.890942.237000@o61g2000hsh.googlegroups.com...
>
> > On Jul 26, 6:10 am, Marcel Ruff wrote:
> >> Thanks Jeff for this insight.
>
> >> I have suspected some daemon already.
>
> >> HP IPAQ hw6910:
> >> Unfortunately i cant find the mentioned registry entry (using total
> >> commander)
> >> and on my two dos boxes (PocketCmd and PocketConsole) the command
> >> 'services' is unknown.
>
> >> Any more ideas how to cope with my situation?
>
> >> Thanks
> >> Marcel
>
> >> > On Jul 25, 10:37 am, Marcel Ruff wrote:
> >> >> Hi,
>
> >> >> on my two PDAs I get the current UTC time from a server (for testing
> >> >> purposes the server
> >> >> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>
> >> >> The time is correctly set on my PDAs (as displayed on the PDA
> >> >> desktop),
> >> >> (C#->Coredll.dll, Windows CE 5, CF 2)
> >> >> but:
>
> >> >> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps to
> >> >> US Western (GMT-5).
> >> >> How can this be, i don't have any code setting the timestamp after
> >> >> 30sec?
>
> >> >> 2) On my IPAQ it is set correctly as well, but after 30 sec it jumps
> >> >> back
> >> >> to the original time (here the Timezone GMT-1 remains OK).
>
> >> >> What could be the reason for such a behaviour?
>
> >> >> Thanks
> >> >> Marcel
>
> >> > Windows runs an NTP client on its own to keep the clock synchronized.
> >> > If you want to sync with a non-standard time server, you need to
> >> > disable this. Try running "services list" from the command line, then
> >> > disable the service listed as "timesvc". You could also just change
> >> > the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
> >> > be some non-existent server, though I would recommend disabling the
> >> > service entirely.
>
> > Have you tried searching your device for services.exe? If it doesn't
> > exist, I'm not sure what else could be changing your clock. You could
> > also try using IOCTL to control the service, but again it it wouldn't
> > be running if services.exe isn't around. See
> >http://msdn2.microsoft.com/en-us/library/ms881011.aspx.
I was thinking the time service was responsible for issue number 2
seen. I agree, it wouldn't be changing the timezone. SNTP/NTP in
general is timezone-less (everything is sent as UTC). There has to be
some other application that is doing this.
Date:Thu, 26 Jul 2007 23:09:19 -0000
Author:
|
Re: SetSystemTime() behaviour: Timezone jump
After looking at the time service code, it looks to me like you can set the
intended time zone for the service via the registry. Maybe that's the
source of the phantom time zone... Periodically, something causes the
service to think, "Hey, it's time to update my settings." It goes and gets
everything from the registry and finds that the time zone doesn't match, so
changes it, or something...
Paul T.
"Jeff Newman" wrote in message
news:1185491359.490323.141880@r34g2000hsd.googlegroups.com...
> On Jul 26, 3:18 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
> no instrument no spam DOT com> wrote:
>> Would the time service change the *zone*? Seems like it would use the
>> zone
>> to figure out the offset from GMT that the server that it's connecting to
>> is
>> returning, but it seems strange that it would change the zone to match
>> the
>> server. That would prevent you, unless you're in Mountain time, for
>> example, from syncing to NIST.
>>
>> This sounds to me like some other application changing the time/zone,
>> maybe
>> to try to sync with the cellular network. It's possible that the
>> cellular
>> network isn't sending the right time zone, I guess, or maybe it is, but
>> not
>> the zone that you want.
>>
>> Paul T.
>>
>> "Jeff Newman" wrote in message
>>
>> news:1185476165.890942.237000@o61g2000hsh.googlegroups.com...
>>
>> > On Jul 26, 6:10 am, Marcel Ruff wrote:
>> >> Thanks Jeff for this insight.
>>
>> >> I have suspected some daemon already.
>>
>> >> HP IPAQ hw6910:
>> >> Unfortunately i cant find the mentioned registry entry (using total
>> >> commander)
>> >> and on my two dos boxes (PocketCmd and PocketConsole) the command
>> >> 'services' is unknown.
>>
>> >> Any more ideas how to cope with my situation?
>>
>> >> Thanks
>> >> Marcel
>>
>> >> > On Jul 25, 10:37 am, Marcel Ruff wrote:
>> >> >> Hi,
>>
>> >> >> on my two PDAs I get the current UTC time from a server (for
>> >> >> testing
>> >> >> purposes the server
>> >> >> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>>
>> >> >> The time is correctly set on my PDAs (as displayed on the PDA
>> >> >> desktop),
>> >> >> (C#->Coredll.dll, Windows CE 5, CF 2)
>> >> >> but:
>>
>> >> >> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps
>> >> >> to
>> >> >> US Western (GMT-5).
>> >> >> How can this be, i don't have any code setting the timestamp
>> >> >> after
>> >> >> 30sec?
>>
>> >> >> 2) On my IPAQ it is set correctly as well, but after 30 sec it
>> >> >> jumps
>> >> >> back
>> >> >> to the original time (here the Timezone GMT-1 remains OK).
>>
>> >> >> What could be the reason for such a behaviour?
>>
>> >> >> Thanks
>> >> >> Marcel
>>
>> >> > Windows runs an NTP client on its own to keep the clock
>> >> > synchronized.
>> >> > If you want to sync with a non-standard time server, you need to
>> >> > disable this. Try running "services list" from the command line,
>> >> > then
>> >> > disable the service listed as "timesvc". You could also just change
>> >> > the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
>> >> > be some non-existent server, though I would recommend disabling the
>> >> > service entirely.
>>
>> > Have you tried searching your device for services.exe? If it doesn't
>> > exist, I'm not sure what else could be changing your clock. You could
>> > also try using IOCTL to control the service, but again it it wouldn't
>> > be running if services.exe isn't around. See
>> >http://msdn2.microsoft.com/en-us/library/ms881011.aspx.
>
> I was thinking the time service was responsible for issue number 2
> seen. I agree, it wouldn't be changing the timezone. SNTP/NTP in
> general is timezone-less (everything is sent as UTC). There has to be
> some other application that is doing this.
>
Date:Thu, 26 Jul 2007 16:27:37 -0700
Author:
|
Re: SetSystemTime() behaviour: Timezone jump: Is a Windows 5 bug
Hi again,
it is a bug in Windows 5, see
http://support.microsoft.com/kb/932472
thanks for your assistance
Marcel
Paul G. Tobey [eMVP] wrote:
> After looking at the time service code, it looks to me like you can set the
> intended time zone for the service via the registry. Maybe that's the
> source of the phantom time zone... Periodically, something causes the
> service to think, "Hey, it's time to update my settings." It goes and gets
> everything from the registry and finds that the time zone doesn't match, so
> changes it, or something...
>
> Paul T.
>
> "Jeff Newman" wrote in message
> news:1185491359.490323.141880@r34g2000hsd.googlegroups.com...
>> On Jul 26, 3:18 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
>> no instrument no spam DOT com> wrote:
>>> Would the time service change the *zone*? Seems like it would use the
>>> zone
>>> to figure out the offset from GMT that the server that it's connecting to
>>> is
>>> returning, but it seems strange that it would change the zone to match
>>> the
>>> server. That would prevent you, unless you're in Mountain time, for
>>> example, from syncing to NIST.
>>>
>>> This sounds to me like some other application changing the time/zone,
>>> maybe
>>> to try to sync with the cellular network. It's possible that the
>>> cellular
>>> network isn't sending the right time zone, I guess, or maybe it is, but
>>> not
>>> the zone that you want.
>>>
>>> Paul T.
>>>
>>> "Jeff Newman" wrote in message
>>>
>>> news:1185476165.890942.237000@o61g2000hsh.googlegroups.com...
>>>
>>>> On Jul 26, 6:10 am, Marcel Ruff wrote:
>>>>> Thanks Jeff for this insight.
>>>>> I have suspected some daemon already.
>>>>> HP IPAQ hw6910:
>>>>> Unfortunately i cant find the mentioned registry entry (using total
>>>>> commander)
>>>>> and on my two dos boxes (PocketCmd and PocketConsole) the command
>>>>> 'services' is unknown.
>>>>> Any more ideas how to cope with my situation?
>>>>> Thanks
>>>>> Marcel
>>>>>> On Jul 25, 10:37 am, Marcel Ruff wrote:
>>>>>>> Hi,
>>>>>>> on my two PDAs I get the current UTC time from a server (for
>>>>>>> testing
>>>>>>> purposes the server
>>>>>>> runs 7 minutes too fast) and i'm setting it with SetSystemTime().
>>>>>>> The time is correctly set on my PDAs (as displayed on the PDA
>>>>>>> desktop),
>>>>>>> (C#->Coredll.dll, Windows CE 5, CF 2)
>>>>>>> but:
>>>>>>> 1) On my Psion after 30 sec the original Dublin GMT Timezone jumps
>>>>>>> to
>>>>>>> US Western (GMT-5).
>>>>>>> How can this be, i don't have any code setting the timestamp
>>>>>>> after
>>>>>>> 30sec?
>>>>>>> 2) On my IPAQ it is set correctly as well, but after 30 sec it
>>>>>>> jumps
>>>>>>> back
>>>>>>> to the original time (here the Timezone GMT-1 remains OK).
>>>>>>> What could be the reason for such a behaviour?
>>>>>>> Thanks
>>>>>>> Marcel
>>>>>> Windows runs an NTP client on its own to keep the clock
>>>>>> synchronized.
>>>>>> If you want to sync with a non-standard time server, you need to
>>>>>> disable this. Try running "services list" from the command line,
>>>>>> then
>>>>>> disable the service listed as "timesvc". You could also just change
>>>>>> the registry setting "HKEY_LOCAL_MACHINE\Services\TIMESVC\server" to
>>>>>> be some non-existent server, though I would recommend disabling the
>>>>>> service entirely.
>>>> Have you tried searching your device for services.exe? If it doesn't
>>>> exist, I'm not sure what else could be changing your clock. You could
>>>> also try using IOCTL to control the service, but again it it wouldn't
>>>> be running if services.exe isn't around. See
>>>> http://msdn2.microsoft.com/en-us/library/ms881011.aspx.
>> I was thinking the time service was responsible for issue number 2
>> seen. I agree, it wouldn't be changing the timezone. SNTP/NTP in
>> general is timezone-less (everything is sent as UTC). There has to be
>> some other application that is doing this.
>>
>
>
Date:Mon, 06 Aug 2007 11:44:59 +0200
Author:
|
|
|