SetTimezoneInformation() will set the time zone (OpenNETCF has a wrapper for
this, too). Check what the Control Panel Date/Time applet says about the
time zone. Have you tried setting the date/time *that* way and seeing if it
"tony" <daylor@netvision.net.il> wrote in message
news:flbg21$g08$1@news2.netvision.net.il...
> except from SetLocalTime and GetLocalTime
>
> i need to call other functions ?
>
> how do i set the timezone, and to what value ?
>
> i can build small program to test it and send the code, just tell me what
> to test ? (SetLocalTime, GetLocalTime,DateTime.Now)
>
> thanking in advance.
>
>
> "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
> news:OESFaK%23SIHA.5264@TK2MSFTNGP02.phx.gbl...
>> It sounds like it's a timezone issue. The CF caches the current DateTime
>> (at least in 1.0 it did), so if you call out to set the time,
>> DateTime.Now will always be wrong from that point on. Without seeing
>> code, I can't say for sure what might be goping wrong though.
>>
>>
>> --
>>
>> Chris Tacke, eMVP
>> Join the Embedded Developer Community
>>
http://community.opennetcf.com >>
>>
>>
>> "tony" <daylor@netvision.net.il> wrote in message
>> news:flbdoo$9el$1@news2.netvision.net.il...
>>> Hi,
>>>
>>> till now i used DateTime.Now , after reading a little , i tried also
>>> GetLocalTime
>>> but it return the same wrong value of 1/1/2008.
>>>
>>> very annoying.
>>>
>>> any ideas ?
>>>
>>> thanks for your help.
>>>
>>>
>>> "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
>>> news:elrKUz9SIHA.1184@TK2MSFTNGP04.phx.gbl...
>>>> How are you reading the date? DateTime.Now?
>>>>
>>>>
>>>> --
>>>>
>>>> Chris Tacke, eMVP
>>>> Join the Embedded Developer Community
>>>>
http://community.opennetcf.com >>>>
>>>>
>>>> "tony" <daylor@netvision.net.il> wrote in message
>>>> news:flbbhs$432$1@news2.netvision.net.il...
>>>>> HI,
>>>>>
>>>>> strange bug from device that work for 6 month ..
>>>>> everytime the device is starting, the user set the date and time.
>>>>>
>>>>> today, the user set 31/12/2007 14:00 and in the main menu
>>>>> the date was 01/01/2008 .
>>>>>
>>>>> what am i missing here ?
>>>>>
>>>>> the device is not connected to internet or any network.
>>>>> and im using OpenNETCF.Win32.DateTimeEx.SetLocalTime. and net compact
>>>>> 1.0
>>>>>
>>>>> thanking in advance.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>