VxWorks: Set timezone when using OS own time-sync tasks
This commit is contained in:
committed by
Michael Davidsaver
parent
167807f0c4
commit
c71ebd1221
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user