Bug 60747 - Daylight Time defined in TZ fails for Southern Hemisphere
Daylight Time defined in TZ fails for Southern Hemisphere
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
7.1
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-05 16:34 EST by Charles Sullivan
Modified: 2016-11-24 10:14 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-06 11:28:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Contains a shell script "tz_test" and source code "show_zones.c". (1.69 KB, text/plain)
2002-03-05 16:46 EST, Charles Sullivan
no flags Details

  None (edit)
Description Charles Sullivan 2002-03-05 16:34:05 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.9-21 i686)

Description of problem:
If the period of Daylight Savings Time (DST) is defined in the environment
variable TZ (format per 'man tzset') for a locality in the Southern Hemisphere
(where the seasons are reversed), Linux ignores the part of DST between Jan 1st
and the resumption of Standard Time (usually occurring in the March-April
timeframe).

Version-Release number of selected component (if applicable): glibc-2.2.4-19.3


How reproducible:
Always

Steps to Reproduce:
1.  Export TZ with DST definition for a locality in the Southern Hemisphere,
e.g., for
Australia/NSW: "export TZ=AST-10ADT,M10.5.0/2,M3.5.0/3".
2.  Set the Linux clock to various dates throughout the year -or- use the
mktime() function in a C program to simulate such dates.
3.  Run the 'date' command at the command line -or- use a simple C program to
report the simulated dates.  (A test program will be attached.)
	

Actual Results:  Dates between Jan 1st and (for this example) the last Sunday in
October are reported as being in Standard Time.  Dates between the last Sunday
in October and Dec 31st are reported as being in DST.

Expected Results:  Dates between Jan 1st and the last Sunday in March should
also be reported as being in DST.

Additional info:

The same problem exists for DST definitions in TZ anywhere in the world in the
Southern Hemisphere.
TZif  files work correctly, whether used from /etc/localtime or defined in TZ,
e.g.,
"export TZ=:Australia/NSW".  (Note however that the timezone abbreviations for
Australia in the TZif files are EST for both Standard and Daylight Times.)
Comment 1 Charles Sullivan 2002-03-05 16:46:33 EST
Created attachment 47500 [details]
Contains a shell script "tz_test" and source code "show_zones.c".
Comment 3 Jakub Jelinek 2002-04-05 04:08:03 EST
Fixed in glibc-2.2.4-24.

Note You need to log in before you can comment on or make changes to this bug.