Bug 922844
Summary: | rotatelogs %Z does not use correct timezone respecting DST | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Luke Meyer <lmeyer> | ||||||
Component: | httpd | Assignee: | Luboš Uhliarik <luhliari> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Filip Holec <fholec> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.4 | CC: | dkutalek, jkaluza, jorton, lmeyer, psplicha | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | httpd-2.2.15-40.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Previously, the rotatelogs utility did not correctly handle local time. Consequently, when using rotatelogs with a date format including "%Z", "%Z" was replaced by the timezone name, disregarding the daylight saving time. This bug has been fixed, and rotatelogs now expands the "%Z" variable in the date format correctly.
|
Story Points: | --- | ||||||
Clone Of: | |||||||||
: | 1244545 (view as bug list) | Environment: | |||||||
Last Closed: | 2015-07-22 05:52:37 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 921537, 1244545 | ||||||||
Attachments: |
|
Description
Luke Meyer
2013-03-18 16:28:54 UTC
Reassigning to "apr". It's apr_strftime problem. Created attachment 810501 [details]
reproducer
Missed this one... "rotatelogs -l" should do the right thing here. Hmm, that doesn't appear to help, sorry. # ln -sf /usr/share/zoneinfo/US/Eastern /etc/localtime # date Thu Oct 10 13:31:14 EDT 2013 # echo 1 | rotatelogs -l '/tmp/foo-%Y%m%d-%H%M%S-%Z' 60 # ls /tmp/foo* /tmp/foo-20131010-133100-EST This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. Created attachment 812373 [details]
proposed patch
Fixed upstream: http://svn.apache.org/r1532281 http://svn.apache.org/r1532289 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1249.html |