Bug 3341

Summary: hwclock.sh startup script does not work if hardware clock is kept in UTC
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Marc Ferland <marc.ferland>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 1.2.1   
Target Milestone: 1.2.2   
Hardware: x86   
OS: Multiple   
Whiteboard: Patch sent to OE list.
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Marc Ferland 2012-10-26 20:10:30 UTC
The hwclock.sh script assumes the hardware clock is kept in localtime. A variable similar to the UTC variable found in /etc/default/rcS should be used to declare whether the HW clock is in local or UTC.

Based on the value of this variable, call hwclock with '--utc' or '--localtime'.

BTW, if the current UTC variable in /etc/default/rcS indicates the HW clock format then the comment should be changed (i.e.: it mentions the system time (linux clock) which is different from the HW clock (bios/cmos)).