VxWorks: Set timezone when using OS own time-sync tasks

This commit is contained in:
Andrew Johnson
2022-06-15 14:06:31 -05:00
committed by Michael Davidsaver
parent 167807f0c4
commit c71ebd1221

View File

@@ -71,7 +71,9 @@ static int timeRegister(void)
useNTP = clock_gettime(CLOCK_REALTIME, &clockNow) != OK ||
clockNow.tv_sec < BUILD_TIME;
// Assumes VxWorks and the host OS have the same epoch
if (!useNTP) // Clock is set so we can run this:
tz2timezone();
}
else
useNTP = 1;