!2447 fix:set sysclktz 0

Merge pull request !2447 from liveery/master
This commit is contained in:
openharmony_ci 2023-12-26 08:32:18 +00:00 committed by Gitee
commit ea4c8dbf21
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -102,6 +102,12 @@ void SystemInit(void)
RegisterFdHoldWatcher(sock);
}
InitControlFd();
// sysclktz 0
struct timezone tz = { 0 };
if (settimeofday(NULL, &tz) == -1) {
INIT_LOGE("Set time of day failed, err = %d", errno);
}
}
void LogInit(void)