This is strange. I'm wondering if it's a bug in Visual C++ 6.0 or what? BTW, I'm running Windows XP Home SP2 if that matters.
I have the following function:
If my timezone is anything from negative to GMT, this function returns the proper number of seconds; but if I set my timezone to a positive value it always returns 1. (To be specific, mktime() always returns -1)
Any ideas?
I have the following function:
Code:
time_t timeZoneAdjustment()
{
time_t epoch( 0 );
return -(mktime( gmtime( &epoch ) ));
}
Any ideas?