From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Beauchamp Newsgroups: gmane.os.tru64.managers Subject: Summary: Problems with daylight savings change Date: Wed, 31 Jan 2007 11:32:44 -0700 Organization: University of Alberta Message-ID: <200701311132.44790.Kevin.Beauchamp@ualberta.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1170268452 16219 80.91.229.12 (31 Jan 2007 18:34:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2007 18:34:12 +0000 (UTC) To: tru64-unix-managers@ornl.gov Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Jan 31 19:33:56 2007 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1HCKGy-0001IU-7q for gotm-tru64-unix-managers@gmane.org; Wed, 31 Jan 2007 19:33:32 +0100 Original-Received: (qmail 10793 invoked by uid 49509); 31 Jan 2007 18:33:13 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 10781 invoked by uid 49501); 31 Jan 2007 18:33:13 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-1.4/5.0):. Processed in 0.473924 secs); 31 Jan 2007 18:33:13 -0000 X-Spam-Status: No, hits=-1.4 required=5.0 Original-Received: from emroute2.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 31 Jan 2007 18:33:12 -0000 Original-Received: from emroute2.ornl.gov ([127.0.0.1]) by emroute2.ornl.gov (PMDF V6.3-x3 #31246) with ESMTP id <0JCQ007Q4WVCCK@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 31 Jan 2007 13:33:12 -0500 (EST) Original-Received: from CONVERSION-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.3-x3 #31246) id <0JCQ00H01WVC9U@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 31 Jan 2007 13:33:12 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.3-x3 #31246) id <0JCQ00H02WUW48@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 31 Jan 2007 13:33:12 -0500 (EST) Original-Received: from pilsener.srv.ualberta.ca (pilsener.srv.ualberta.ca [129.128.5.19]) by emroute2.ornl.gov (PMDF V6.3-x3 #31246) with ESMTPS id <0JCQ007IGWUVBY@emroute2.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 31 Jan 2007 13:32:56 -0500 (EST) Original-Received: from 129.128.35.248 (pp248.facmgmt.ualberta.ca [129.128.35.248]) by pilsener.srv.ualberta.ca (8.13.7/8.13.7) with ESMTP id l0VIWjL1004171 for ; Wed, 31 Jan 2007 11:32:46 -0700 (MST) X-Envelope-from: Kevin.Beauchamp@ualberta.ca Content-disposition: inline User-Agent: KMail/1.5.1 X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,BOTNET_SOHO, FORGED_RCVD_HELO,RCVD_NUMERIC_HELO autolearn=no version=3.1.7 Xref: news.gmane.org gmane.os.tru64.managers:9118 Archived-At: On Mon, 29 Jan 2007, I wrote: > Regarding the upcoming changes to the beginning and ending dates of dayli= ght > savings time, we've looked at the patches HP released and seen that they > start at version 4.0E: since we're still on 4.0D it doesn't look like tha= t=20 > is an option for us. > > I downloaded the new timezone data file tzdata2007a.tar.gz from > ftp://elsie.nci.hi.gov/pub and tried to compile it with our old version of > zic, but it failed. > > I then tried compiling both the new timezone code and data, but the new c= ode > will not compile on our system with the default Makefile. > > Has anyone still on a version of Digital Unix too old to use the patches= =20 > found a way to upgrade their timezone information? Thanks to all who replied: "Stacks, David W" James Sainsbury Franz Fischer The solution was to use the version of zic we already had and modify our=20 existing timezone data. The HP DST file (contents quoted below: thanks Davi= d)=20 helped. Two minor issues:=20 1) our zdump choked on the leading colon when specifying the timezone but=20 worked when it was omitted.=20 2) "zic backward" failed. Note: We have not tried rolling the clock ahead to test how the system acts= =20 during the new daylight savings period as yet. Caveat emptor. Thanks again. Contents of the HP DST file: __________ The following steps will implement the 2007 changes to U.S. Daylight Saving= =20 Time (DST) rules on Tru64 UNIX version 5 systems for which an Early Release= =20 Patch (ERP) is not available. An ERP to implement these changes is availab= le=20 for V5.1A with patch kit 6, for V5.1B with patch kit 4 (aka V5.1B-2), and=20 V5.1B with patch kit 5 (aka V5.1B-3). For all other V5 version/patch kit=20 combinations, the changes must be implemented manually. This is a reasonab= ly=20 quick and straightforward process and does not require a system reboot. Step 1: For comparison purposes, display the times for DST changes for 2006= =20 and 2007 under the current rules. This can be done using any of the United= =20 States time zones; for this example, we will use America/New_York. To veri= fy=20 the time zone in use on your system, display the symbolic link=20 /etc/zoneinfo/localtime: # ls -l /etc/zoneinfo/localtime lrwxrwxrwx 1 root system 18 Feb 8 2004 /etc/zoneinfo/localti= me=20 =2D> ./America/New_York Now use zdump to show the DST transitions for this time zone in 2006-2007: # zdump -v :America/New_York | grep =E2=80=98200[67]=E2=80=99 :America/New_York Fri Oct 20 14:59:45 2006 EDT :America/New_York Sun Apr 2 06:59:59 2006 GMT =3D Sun Apr 2 01:59:59 200= 6 EST=20 isdst=3D0 gmtoff=3D-18000 :America/New_York Sun Apr 2 07:00:00 2006 GMT =3D Sun Apr 2 03:00:00 200= 6 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Oct 29 05:59:59 2006 GMT =3D Sun Oct 29 01:59:59 200= 6 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Oct 29 06:00:00 2006 GMT =3D Sun Oct 29 01:00:00 200= 6 EST=20 isdst=3D0 gmtoff=3D-18000 :America/New_York Sun Apr 1 06:59:59 2007 GMT =3D Sun Apr 1 01:59:59 200= 7 EST=20 isdst=3D0 gmtoff=3D-18000 :America/New_York Sun Apr 1 07:00:00 2007 GMT =3D Sun Apr 1 03:00:00 200= 7 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Oct 28 05:59:59 2007 GMT =3D Sun Oct 28 01:59:59 200= 7 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Oct 28 06:00:00 2007 GMT =3D Sun Oct 28 01:00:00 200= 7 EST=20 isdst=3D0 gmtoff=3D-18000 The first line of output shows the current system time. Each subsequent pa= ir=20 of lines shows the time just before and just after a DST transition. The=20 first pair shows the spring transition to DST on the first Sunday in April,= =20 while the second pair shows the fall transition to Standard time on the las= t=20 Sunday in October. This shows that the current DST rules are in effect for= =20 both 2006 and 2007. Save this output for later comparison. Step 2: Modify the time zone source file that contains the US time zone rul= es. =20 =46irst, save a backup copy of this file: # cd /etc/zoneinfo/sources # cp northamerica northamerica.bak Now edit file =E2=80=9Cnorthamerica=E2=80=9D with an editor of your choice = and find the=20 section of lines that begin with =E2=80=9CRule US=E2=80=9D. This sect= ion should look=20 like this: # Rule NAME FROM TO TYPE IN ON AT SAVE =20 LETTER/S Rule US 1918 1919 - Mar lastSun 2:00 1:00 W #= =20 War Rule US 1918 1919 - Oct lastSun 2:00 0 S Rule US 1942 only - Feb 9 2:00 1:00 W #= =20 War Rule US 1945 only - Aug 14 23:00u 1:00 P #= =20 Peace Rule US 1945 only - Sep 30 2:00 0 S Rule US 1967 max - Oct lastSun 2:00 0 S Rule US 1967 1973 - Apr lastSun 2:00 1:00 D Rule US 1974 only - Jan 6 2:00 1:00 D Rule US 1975 only - Feb 23 2:00 1:00 D Rule US 1976 1986 - Apr lastSun 2:00 1:00 D Rule US 1987 max - Apr Sun>=3D1 2:00 1:00 D You will need to modify two of the above lines (highlighted in bold text) a= nd=20 add two new lines at the end of the list. In each of the bold lines, chang= e=20 =E2=80=9Cmax=E2=80=9D to =E2=80=9C2006=E2=80=9D. Then add the following tw= o lines at the end of the section: Rule US 2007 max - Mar Sun>=3D8 2:00 1:00 D Rule US 2007 max - Nov Sun>=3D1 2:00 0 S The modified section should now look like this: # Rule NAME FROM TO TYPE IN ON AT SAVE =20 LETTER/S Rule US 1918 1919 - Mar lastSun 2:00 1:00 W #= =20 War Rule US 1918 1919 - Oct lastSun 2:00 0 S Rule US 1942 only - Feb 9 2:00 1:00 W #= =20 War Rule US 1945 only - Aug 14 23:00u 1:00 P #= =20 Peace Rule US 1945 only - Sep 30 2:00 0 S Rule US 1967 2006 - Oct lastSun 2:00 0 S Rule US 1967 1973 - Apr lastSun 2:00 1:00 D Rule US 1974 only - Jan 6 2:00 1:00 D Rule US 1975 only - Feb 23 2:00 1:00 D Rule US 1976 1986 - Apr lastSun 2:00 1:00 D Rule US 1987 2006 - Apr Sun>=3D1 2:00 1:00 D Rule US 2007 max - Mar Sun>=3D8 2:00 1:00 D Rule US 2007 max - Nov Sun>=3D1 2:00 0 S Save the file and exit the editor. Step 3: Compile the new timezone definitions. Your current working directo= ry=20 should be /etc/zoneinfo/sources. # zic northamerica # zic backward The second =E2=80=9Czic=E2=80=9D command is needed to restore some hard lin= ks for old-style=20 timezones that still exist for backward compatibility. Step 4: Verify the changes. Use zdump to display the DST transition times= =20 for 2006-7 under the new rules: # zdump -v :America/New_York | grep =E2=80=98200[67]=E2=80=99 :America/New_York Fri Oct 20 15:03:35 2006 EDT :America/New_York Sun Apr 2 06:59:59 2006 GMT =3D Sun Apr 2 01:59:59 200= 6 EST=20 isdst=3D0 gmtoff=3D-18000 :America/New_York Sun Apr 2 07:00:00 2006 GMT =3D Sun Apr 2 03:00:00 200= 6 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Oct 29 05:59:59 2006 GMT =3D Sun Oct 29 01:59:59 200= 6 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Oct 29 06:00:00 2006 GMT =3D Sun Oct 29 01:00:00 200= 6 EST=20 isdst=3D0 gmtoff=3D-18000 :America/New_York Sun Mar 11 06:59:59 2007 GMT =3D Sun Mar 11 01:59:59 200= 7 EST=20 isdst=3D0 gmtoff=3D-18000 :America/New_York Sun Mar 11 07:00:00 2007 GMT =3D Sun Mar 11 03:00:00 200= 7 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Nov 4 05:59:59 2007 GMT =3D Sun Nov 4 01:59:59 200= 7 EDT=20 isdst=3D1 gmtoff=3D-14400 :America/New_York Sun Nov 4 06:00:00 2007 GMT =3D Sun Nov 4 01:00:00 200= 7 EST=20 isdst=3D0 gmtoff=3D-18000 This output shows that the transition times for 2006 are still under the ol= d=20 rules: first Sunday in April and last Sunday in October. But starting in=20 2007 (you can verify this for any other year with zdump) the transitions=20 follow the new rules. They occur on the second Sunday in March and the fir= st=20 Sunday in November. __________ =2D-=20 Kevin Beauchamp Specialist Technician University of Alberta (main campus) =46acilities and Operations mailstop: RCMS, Room 100A Edmonton AB T6G 2H1 Canada Tel: (780) 492-2074 =46ax: (780) 492-5945 email: Kevin.Beauchamp@ualberta.ca