![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
How are you reading the date? DateTime.Now? -- Chris Tacke, eMVP Join the Embedded Developer Community http://community.opennetcf.com "tony" <daylor (AT) netvision (DOT) net.il> wrote in message news:flbbhs$432$1 (AT) news2 (DOT) 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. |
#4
| |||
| |||
|
|
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 (AT) TK2MSFTNGP04 (DOT) phx.gbl... How are you reading the date? DateTime.Now? -- Chris Tacke, eMVP Join the Embedded Developer Community http://community.opennetcf.com "tony" <daylor (AT) netvision (DOT) net.il> wrote in message news:flbbhs$432$1 (AT) news2 (DOT) 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. |
#5
| |||
| |||
|
|
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 (AT) netvision (DOT) net.il> wrote in message news:flbdoo$9el$1 (AT) news2 (DOT) 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 (AT) TK2MSFTNGP04 (DOT) phx.gbl... How are you reading the date? DateTime.Now? -- Chris Tacke, eMVP Join the Embedded Developer Community http://community.opennetcf.com "tony" <daylor (AT) netvision (DOT) net.il> wrote in message news:flbbhs$432$1 (AT) news2 (DOT) 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. |
#6
| |||
| |||
|
|
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 (AT) TK2MSFTNGP02 (DOT) 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 (AT) netvision (DOT) net.il> wrote in message news:flbdoo$9el$1 (AT) news2 (DOT) 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 (AT) TK2MSFTNGP04 (DOT) phx.gbl... How are you reading the date? DateTime.Now? -- Chris Tacke, eMVP Join the Embedded Developer Community http://community.opennetcf.com "tony" <daylor (AT) netvision (DOT) net.il> wrote in message news:flbbhs$432$1 (AT) news2 (DOT) 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. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Hi I am facing a similar issue. Though my device works on windows CE 6.0 but i think the problem is related. my device was also working fine since last few months but now from 1st Jan, the date that is getting set is one day ahead of what i m trying to set. the hours and minutes are getting set correctly. I am using SetLocalTime to set the time. As suggested, i tried setting the date using Date/Time applet in control panel, but the behaviour is the same. I am also setting the timezone registry in platform.reg file to set my timezone after every cold boot. Any help is appreciated. Thanks Abhishek |
#9
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |