From semen@default.the.net  Tue Jan 16 06:47:27 2001
Return-Path: <semen@default.the.net>
Received: from default.the.net (unknown [217.70.108.9])
	by hub.freebsd.org (Postfix) with ESMTP id 694F537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Jan 2001 06:47:24 -0800 (PST)
Received: (from semen@localhost)
	by default.the.net (8.11.1/8.11.0) id f0GEpT702670;
	Tue, 16 Jan 2001 20:51:29 +0600 (GMT+6)
	(envelope-from semen)
Message-Id: <200101161451.f0GEpT702670@default.the.net>
Date: Tue, 16 Jan 2001 20:51:29 +0600 (GMT+6)
From: semenu@freebsd.org
Reply-To: semenu@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Generic timezone entries wrong
X-Send-Pr-Version: 3.2

>Number:         24385
>Category:       conf
>Synopsis:       GMT+N and GMT-N timezones are wrong defined
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 16 06:50:01 PST 2001
>Closed-Date:    Tue Jan 16 08:21:57 PST 2001
>Last-Modified:  Tue Jan 16 08:22:52 PST 2001
>Originator:     Semen A. Ustimenko
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
>Environment:

	timezones defined in src/share/zoneinfo/etcetera

>Description:

	The correct way to define an entry is to give an offset
	from GMT as a third parameter, not back offset. Even 
	comment say this in src/share/zoneinfo/etcetera:

# Earlier incarnations of this package were not POSIX-compliant,
# and had lines such as
#               Zone    GMT-12          -12     -       GMT-1200

>How-To-Repeat:

	Try to use any of GMT+N or GMT-N timezones, and see your
	time shifts right in another way of what you supposed.

>Fix:

Index: src/share/zoneinfo/etcetera
===================================================================
RCS file: /usr/home/ncvs/src/share/zoneinfo/etcetera,v
retrieving revision 1.1.2.4
diff -c -r1.1.2.4 etcetera
*** src/share/zoneinfo/etcetera	1999/01/21 21:35:07	1.1.2.4
--- src/share/zoneinfo/etcetera	2000/12/04 15:14:56
***************
*** 37,65 ****
  #		zic -l GMT-12
  # so we moved the names into the Etc subdirectory.
  
! Zone	Etc/GMT-14	14	-	GMT-14	# 14 hours ahead of GMT
! Zone	Etc/GMT-13	13	-	GMT-13
! Zone	Etc/GMT-12	12	-	GMT-12
! Zone	Etc/GMT-11	11	-	GMT-11
! Zone	Etc/GMT-10	10	-	GMT-10
! Zone	Etc/GMT-9	9	-	GMT-9
! Zone	Etc/GMT-8	8	-	GMT-8
! Zone	Etc/GMT-7	7	-	GMT-7
! Zone	Etc/GMT-6	6	-	GMT-6
! Zone	Etc/GMT-5	5	-	GMT-5
! Zone	Etc/GMT-4	4	-	GMT-4
! Zone	Etc/GMT-3	3	-	GMT-3
! Zone	Etc/GMT-2	2	-	GMT-2
! Zone	Etc/GMT-1	1	-	GMT-1
! Zone	Etc/GMT+1	-1	-	GMT+1
! Zone	Etc/GMT+2	-2	-	GMT+2
! Zone	Etc/GMT+3	-3	-	GMT+3
! Zone	Etc/GMT+4	-4	-	GMT+4
! Zone	Etc/GMT+5	-5	-	GMT+5
! Zone	Etc/GMT+6	-6	-	GMT+6
! Zone	Etc/GMT+7	-7	-	GMT+7
! Zone	Etc/GMT+8	-8	-	GMT+8
! Zone	Etc/GMT+9	-9	-	GMT+9
! Zone	Etc/GMT+10	-10	-	GMT+10
! Zone	Etc/GMT+11	-11	-	GMT+11
! Zone	Etc/GMT+12	-12	-	GMT+12
--- 37,65 ----
  #		zic -l GMT-12
  # so we moved the names into the Etc subdirectory.
  
! Zone	Etc/GMT-14	-14	-	GMT-14	# 14 hours ahead of GMT
! Zone	Etc/GMT-13	-13	-	GMT-13
! Zone	Etc/GMT-12	-12	-	GMT-12
! Zone	Etc/GMT-11	-11	-	GMT-11
! Zone	Etc/GMT-10	-10	-	GMT-10
! Zone	Etc/GMT-9	-9	-	GMT-9
! Zone	Etc/GMT-8	-8	-	GMT-8
! Zone	Etc/GMT-7	-7	-	GMT-7
! Zone	Etc/GMT-6	-6	-	GMT-6
! Zone	Etc/GMT-5	-5	-	GMT-5
! Zone	Etc/GMT-4	-4	-	GMT-4
! Zone	Etc/GMT-3	-3	-	GMT-3
! Zone	Etc/GMT-2	-2	-	GMT-2
! Zone	Etc/GMT-1	-1	-	GMT-1
! Zone	Etc/GMT+1	1	-	GMT+1
! Zone	Etc/GMT+2	2	-	GMT+2
! Zone	Etc/GMT+3	3	-	GMT+3
! Zone	Etc/GMT+4	4	-	GMT+4
! Zone	Etc/GMT+5	5	-	GMT+5
! Zone	Etc/GMT+6	6	-	GMT+6
! Zone	Etc/GMT+7	7	-	GMT+7
! Zone	Etc/GMT+8	8	-	GMT+8
! Zone	Etc/GMT+9	9	-	GMT+9
! Zone	Etc/GMT+10	10	-	GMT+10
! Zone	Etc/GMT+11	11	-	GMT+11
! Zone	Etc/GMT+12	12	-	GMT+12


>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: semenu@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: conf/24385: Generic timezone entries wrong
Date: Tue, 16 Jan 2001 11:10:47 -0500 (EST)

 <<On Tue, 16 Jan 2001 20:51:29 +0600 (GMT+6), semenu@FreeBSD.ORG said:
 
 > 	Try to use any of GMT+N or GMT-N timezones, and see your
 > 	time shifts right in another way of what you supposed.
 
 These zones are included for compatibility with ancient UNIX systems.
 You are more likely to convince the TZ database developers to drop
 them altogether than you are to get them to change the definitions.
 In any case, FreeBSD will follow the practice of the TZ database.
 
 -GAWollman
 
 
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Tue Jan 16 08:21:57 PST 2001 
State-Changed-Why:  
This database is externally maintained; any changes need to be coordinated 
with the originators. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24385 
>Unformatted:
