Change to posix.cc to set gnu.java.util.zoneinfo.dir

Marco Trudel mtrudel@gmx.ch
Fri Mar 9 10:24:00 GMT 2007


Tom Tromey wrote:
>>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
> 
> Marco> When the topic is already on the table. What about mingw? There's no
> Marco> zoneinfo stuff... Does that lead to runtime errors with the new code?
> 
> It looks like it falls back to the old code.  I'm not 100% sure
> though.  Could you try it?

I only run this little test:

public class TimeZoneTest
{
	public static void main(String[] args)
	{
		TimeZone tz = new SimpleTimeZone(3600000,
                 "Europe/Paris",
                 Calendar.MARCH, -1, Calendar.SUNDAY,
                 3600000, SimpleTimeZone.UTC_TIME,
                 Calendar.OCTOBER, -1, Calendar.SUNDAY,
                 3600000, SimpleTimeZone.UTC_TIME,
                 3600000);
		System.out.println(tz);
		System.out.println(tz.inDaylightTime(new Date()));
	}
}

But the fallback (rev 122742) seems to work :-)


thanks
Marco



More information about the Java mailing list