Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title How to set the hardware clock
Ref. No. QNX.000010332
Category(ies) Utilities, Configuration
Issue I'm setting the time using date. (e.g date 200105231130.)

Then I set the hardware to match the new date. (rtc -s hw). 

The problem is when I reboot, the time does not stay, it reverts to a previous setting.
Solution To fix this, in /etc/config/sysinit.  Add the  entry "rtc hw".  This will set the OS time with the hardware time that you set previously.