Bug 5414 - [hwclock] reads "timezone" without calling tzset()
Summary: [hwclock] reads "timezone" without calling tzset()
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.19.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-30 18:30 UTC by David Barksdale
Modified: 2014-02-25 16:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
proposed fix (936 bytes, patch)
2012-07-30 18:30 UTC, David Barksdale
Details

Note You need to log in before you can comment on or make changes to this bug.
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