From owner-freebsd-bugs Tue Jan 16 6:50:24 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1A11C37B404 for ; Tue, 16 Jan 2001 06:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0GEo2E14646; Tue, 16 Jan 2001 06:50:02 -0800 (PST) (envelope-from gnats) Received: from default.the.net (unknown [217.70.108.9]) by hub.freebsd.org (Postfix) with ESMTP id 694F537B401 for ; 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 X-Send-Pr-Version: 3.2 Subject: conf/24385: Generic timezone entries wrong Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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