So I created a program to pull the time from my server 2008 box code below. The weird thing is the first part that calls time(&rawtime) comes back with 4 hours earlier my time zone is +2gmt so its not time zone related. The problem is the program we are running is using the same function and its an issue if records are recorded 4 hours before they happen. Does any one know how to set the raw time on a server 2008? time_t rawtime;
CString strTime;

time(&rawtime);
strTime.Format("1.The current local time is: %s", ctime(&rawtime) );
AfxMessageBox(strTime);

SYSTEMTIMESystemTime;
GetSystemTime(&SystemTime);

strTime.Format("2. The current system time is: %d:%d:%d.%d",SystemTime.wHour, SystemTime.wMinute, SystemTime.wSecond,SystemTime.wMilliseconds );
AfxMessageBox(strTime);

SYSTEMTIME localtim;
GetLocalTime(&localtim);

strTime.Format("3. The current local time is: %d:%d:%d.%d",localtim.wHour, localtim.wMinute, localtim.wSecond, localtim.wMilliseconds );
AfxMessageBox(strTime);