Bug 5414

Summary: [hwclock] reads "timezone" without calling tzset()
Product: Busybox Reporter: David Barksdale <david.barksdale>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: proposed fix

Description David Barksdale 2012-07-30 18:30:48 UTC
Created attachment 4460 [details]
proposed fix

When using hwclock to set the system time, it always sets the kernel's tz_minuteswest to 0. It calculates tz_minuteswest from the libc globals "timezone" and "daylight" which are 0 before being set by a call to tzset().
Comment 1 Denys Vlasenko 2014-02-25 16:53:01 UTC
Fixed in git:

commit 589051b56553788546c757a0b38996a1a8c49a11
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Tue Feb 25 17:52:10 2014 +0100

    hwclock: fix setting of tz_minuteswest