Part Number: CCSTUDIO
Based on the support library, I am using CIO and testing the time() function supported by <time.h> and my time is delayed by 2 hours.
How can it be resolved?

// 1. Fetch Unix timestamp from host PC over JTAG CIO
time(&raw_time);
// 2. Convert to human-readable local time format structure
pc_time = localtime(&raw_time);
if (pc_time != NULL) {
printf("Host PC Time successfully captured!\n");
printf("Date: %02d/%02d/%04d\n", pc_time->tm_mon + 1, pc_time->tm_mday, pc_time->tm_year + 1900);
printf("Time: %02d:%02d:%02d\n", pc_time->tm_hour, pc_time->tm_min, pc_time->tm_sec);
} else {
printf("Failed to get time from host PC.\n");
}
CORTEX_M0P: Host PC Time successfully captured!
CORTEX_M0P: Date: 06/11/2026
CORTEX_M0P: Time: 13:15:16
