This is the code. Runs on hundreds of thousands of PCs worldwide, but one pc, returns 01/01/1601 instead of a proper date.
char * currentdate()
char * sresult = createstring(19, BUFSIZE); // freed in main
sprintf(sresult, "%02i-%02i-%0004i %02i:%02i:%02i\0", stime.wDay, stime.wMonth, stime.wYear, stime.wHour, stime.wMinute, stime.wSecond);
Do you think its the PC or the code thats wrong ????? Its at a customer site so I'd like to find out as much as possible before asking them to do tests