Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong System Time with API Call

Status
Not open for further replies.

TBONE917

Programmer
Oct 21, 2004
13
US
Hey... Im trying to create a custom shell for Windows 2000 Pro and I am having trouble displaying an accurate clock. I am running an app that gets the current time and time zone info from our server and sets the local machine to the returned values. If I go to Control Panel->Date and Time, I can see that the values are being set correctly. However, in my program I am making calls to GetSystemTime or COleDateTime::GetCurrentTime and both of these return the time before a synchronization. (i.e. If I am running my shell with a timer that calls GetSystemTime, and the time zone changes on the server, this changes the computers time and timezone, but my application keeps returning the old time for calls to the system time inside my TIMERPROC timers. Has anyone seen anything like this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top