Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2001 20:51:29 +0600 (GMT+6)
From:      semenu@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/24385: Generic timezone entries wrong
Message-ID:  <200101161451.f0GEpT702670@default.the.net>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 16 06:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101161451.f0GEpT702670>