Bug 23566

Summary: Need to regenerate TimeZone data against tzdata2006a
Product: classpath Reporter: Mark Wielaard <mark>
Component: classpathAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: bug-classpath
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2006-02-02 13:47:22
Bug Depends on:    
Bug Blocks: 16990    

Description Mark Wielaard 2005-08-25 20:55:52 UTC
Current TimeZone is generated from tzdata2005l, with tzdata2005k from
ftp://elsie.nci.nih.gov/pub/ we have to following error running the timezone.pl
script: Unknown link Link       America/Indianapolis    EST
Comment 1 Andrew Pinski 2006-02-02 13:47:22 UTC
I thought this was done already?
Comment 2 Mark Wielaard 2006-02-02 14:01:29 UTC
No, it hasn't been updated since:

2005-08-25  Mark Wielaard  <mark@klomp.org>

        Reported by Bastiaan Huisman <huisman@science.uva.nl>
        * scripts/tzabbrevs: Change America/Buenos_Aires to
        America/Argentina/Buenos_Aires for AGT link.
        * scripts/timezones.pl (parseTime): Assume and return wall time.
        Reindent output.
        * java/util/TimeZone.java (timezones): Regenerate using tzdata2005l.

And the latest tzdata is now tzdata2006a.
Comment 3 Andrew Cowie 2006-07-31 08:15:26 UTC
You should probably use timezone-data 2006h as that is most recent.

AfC
Comment 4 Jakub Jelinek 2007-02-09 10:53:53 UTC
Subject: Bug 23566

Author: jakub
Date: Fri Feb  9 10:53:40 2007
New Revision: 121740

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121740
Log:
	PR 23566
	* scripts/timezones.pl: Parse each file in 2 passes, in one parse
	just Rule lines, in the other everything else.  Pass 0 instead of
	$savings as second argument to parseRule when parsing the start
	rule.
	* java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.

Modified:
    trunk/libjava/classpath/ChangeLog
    trunk/libjava/classpath/java/util/TimeZone.java
    trunk/libjava/classpath/scripts/timezones.pl

Comment 5 Andrew Haley 2007-02-12 14:58:20 UTC
Subject: Bug 23566

Author: aph
Date: Mon Feb 12 14:58:04 2007
New Revision: 121846

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121846
Log:
2007-02-09  Jakub Jelinek  <jakub@redhat.com>

	* java/util/VMTimeZone.java: Rewrite to handle both the old
	'TZif\0' format and the new one.
	
2007-02-09  Jakub Jelinek  <jakub@redhat.com>

	* java/util/TimeZone.java: Handle default (one hour) daylight
	savings.

2007-02-09  Jakub Jelinek  <jakub@redhat.com>

	PR 23566
	* scripts/timezones.pl: Parse each file in 2 passes, in one parse
	just Rule lines, in the other everything else.  Pass 0 instead of
	$savings as second argument to parseRule when parsing the start
	rule.
	* java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.


Modified:
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/ChangeLog
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/classpath/ChangeLog
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/classpath/java/util/TimeZone.java
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/classpath/scripts/timezones.pl
    branches/redhat/gcc-4_1-branch-java-merge-20070117/libjava/java/util/VMTimeZone.java

Comment 6 cvs-commit@developer.classpath.org 2007-02-12 15:18:44 UTC
Subject: Bug 23566

CVSROOT:	/cvsroot/classpath
Module name:	classpath
Changes by:	Andrew Haley <aph>	07/02/12 15:17:51

Modified files:
	.              : ChangeLog 
	java/util      : TimeZone.java 
	scripts        : timezones.pl 
	vm/reference/java/util: VMTimeZone.java 

Log message:
	2007-02-12  Jakub Jelinek  <jakub@redhat.com>
	
	        PR 23566
	        * scripts/timezones.pl: Parse each file in 2 passes, in one parse
	        just Rule lines, in the other everything else.  Pass 0 instead of
	        $savings as second argument to parseRule when parsing the start
	        rule.
	        * java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.
	
	2007-02-12  Jakub Jelinek  <jakub@redhat.com>
	
	        * vm/reference/java/util/VMTimeZone.java: Rewrite to handle both
	        the old 'TZif\0' format and the new one.
	        * java/util/TimeZone.java: Handle default (one hour) daylight
	        savings.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9104&r2=1.9105
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/TimeZone.java?cvsroot=classpath&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/classpath/scripts/timezones.pl?cvsroot=classpath&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/classpath/vm/reference/java/util/VMTimeZone.java?cvsroot=classpath&r1=1.3&r2=1.4



Comment 7 Andrew Haley 2007-02-12 16:19:28 UTC
Subject: Bug 23566

Author: aph
Date: Mon Feb 12 16:19:05 2007
New Revision: 121848

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121848
Log:
2007-02-09  Jakub Jelinek  <jakub@redhat.com>

        PR 23566
        * scripts/timezones.pl: Parse each file in 2 passes, in one parse
        just Rule lines, in the other everything else.  Pass 0 instead of
        $savings as second argument to parseRule when parsing the start
        rule.
        * java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.


Modified:
    branches/gcc-4_1-branch/libjava/classpath/ChangeLog
    branches/gcc-4_1-branch/libjava/classpath/java/util/TimeZone.java
    branches/gcc-4_1-branch/libjava/classpath/scripts/timezones.pl

Comment 8 Andrew Haley 2007-02-12 17:01:28 UTC
Subject: Bug 23566

Author: aph
Date: Mon Feb 12 17:01:14 2007
New Revision: 121850

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121850
Log:
2007-02-09  Jakub Jelinek  <jakub@redhat.com>

        PR 23566
        * java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.


Modified:
    branches/gcc-4_2-branch/libjava/classpath/ChangeLog
    branches/gcc-4_2-branch/libjava/classpath/java/util/TimeZone.java

Comment 9 Jakub Jelinek 2007-06-22 12:17:28 UTC
Subject: Bug 23566

Author: jakub
Date: Fri Jun 22 12:17:00 2007
New Revision: 125946

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125946
Log:
2007-02-24  Jakub Jelinek  <jakub@redhat.com>

libjava/classpath/
	* java/util/TimeZone.java (getDefaultDisplayName): Don't
	check if TimeZone is instanceof SimpleTimeZone.

2007-02-22  Jakub Jelinek  <jakub@redhat.com>

libjava/
	PR libgcj/17002
	PR classpath/28550
	* java/util/VMTimeZone.java (getDefaultTimeZoneId): To read
	/etc/localtime, use ZoneInfo.readTZFile instead of
	VMTimeZone.readtzFile.  Get better timezone name for /etc/localtime,
	either if it is a symlink or through /etc/sysconfig/clock.
	(readSysconfigClockFile): New static method.
	(readtzFile): Removed.
	* java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments.
	* posix.cc (_Jv_platform_initProperties): Set
	gnu.java.util.zoneinfo.dir.
	* sources.am (gnu_java_util_source_files): Add
	classpath/gnu/java/util/ZoneInfo.java.
	* Makefile.in: Regenerated.
libjava/classpath/
	* java/util/Date.java (parse): Properly parse 09:01:02 as
	hours/minutes/seconds, not as hours/minutes/year.
	* java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify
	{start,end}TimeMode constructor by calling shorter constructor,
	set {start,end}TimeMode fields after it returns.
	(setStartRule): Don't adjust startTime into WALL_TIME.  Set
	startTimeMode to WALL_TIME.
	(endStartRule): Similarly.
	(getOffset): Handle properly millis + dstOffset overflowing into the
	next day.  Adjust startTime resp. endTime based on startTimeMode
	resp. endTimeMode.
	* java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New
	static fields.
	(timezones): Remove synchronized keyword.  Set zoneinfo_dir.
	If non-null, set up aliases0 and don't put anything into
	timezones0.
	(defaultZone): Call getTimeZone instead of timezones().get.
	(getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6.  Use
	getTimeZoneInternal instead of timezones().get.
	(parseTime): Parse correctly hour:minute.
	(getTimeZoneInternal): New private method.
	(getTimeZone): Do the custom ID checking first, canonicalize
	ID for custom IDs as required by documentation.  Call
	getTimeZoneInternal to handle the rest.
	(getAvailableIDs(int)): Add locking.  Handle zoneinfo_dir != null.
	(getAvailableIDs(File,String,ArrayList)): New private method.
	(getAvailableIDs()): Add locking.  Handle zoneinfo_dir != null.
	* gnu/java/util/ZoneInfo.java: New file.

2007-02-14  Jakub Jelinek  <jakub@redhat.com>
	Andrew Haley  <aph@redhat.com>

libjava/classpath/
	* java/util/TimeZone.java (getDateParams): Negate dayOfWeek.

2007-02-09  Jakub Jelinek  <jakub@redhat.com>

libjava/
	* java/util/VMTimeZone.java: Rewrite to handle both the old
	'TZif\0' format and the new one.
libjava/classpath/
	* java/util/TimeZone.java: Handle default (one hour) daylight
	savings.

	PR 23566
	* java/util/TimeZone.java (timezones): Regenerate from tzdata2007a.

Added:
    branches/redhat/fc6-4_1-branch/libjava/classpath/gnu/java/util/ZoneInfo.java
Modified:
    branches/redhat/fc6-4_1-branch/libjava/ChangeLog
    branches/redhat/fc6-4_1-branch/libjava/Makefile.in
    branches/redhat/fc6-4_1-branch/libjava/classpath/ChangeLog
    branches/redhat/fc6-4_1-branch/libjava/classpath/java/util/Date.java
    branches/redhat/fc6-4_1-branch/libjava/classpath/java/util/SimpleTimeZone.java
    branches/redhat/fc6-4_1-branch/libjava/classpath/java/util/TimeZone.java
    branches/redhat/fc6-4_1-branch/libjava/java/lang/System.java
    branches/redhat/fc6-4_1-branch/libjava/java/util/VMTimeZone.java
    branches/redhat/fc6-4_1-branch/libjava/posix.cc
    branches/redhat/fc6-4_1-branch/libjava/sources.am