I'm making an assumption here that you are talking about converting the two
SYSTEMTIME
structures in the
DYNAMIC_TIME_ZONE_INFORMATION
object. To accomplish this, I believe that you are going to start by converting the
SYSTEMTIME
structure to a local file time using
SystemTimeToLocalFileTime
function. Once you have done this, you will use
FileTimeToSystemTime
to convert the local file time back to a
SYSTEMTIME
structure representing the date in local time. It might look something like this:
SYSTEMTIME standardDate = timeZoneInfo.StandardDate;
FILETIME localFileTime;
SystemTimeToLocalFileTime(&standardDate, &localFileTime);
SYSTEMTIME localStandardDate;
FileTimeToSystemTime(&localFileTime, &localStandardDate);
char dateString[20];
sprintf(dateString, "%d-%02d-%02dT%02d:%02d:%02dT", localStandardDate.wYear, localStandardDate.wMonth, localStandardDate.wDay, localStandardDate.wHour, localStandardDate.wMinute, localStandardDate.wSecond);
Note, I'm just creating this method in the editor here, so there maybe a typo or two here.