From owner-freebsd-java@FreeBSD.ORG Tue Jun 29 15:20:52 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4B6C16A4CE for ; Tue, 29 Jun 2004 15:20:52 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C02843D48 for ; Tue, 29 Jun 2004 15:20:51 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id i5TETXFm003672 for ; Tue, 29 Jun 2004 17:29:33 +0300 Received: from localhost (achill@localhost)i5TETWLq003668 for ; Tue, 29 Jun 2004 17:29:33 +0300 Date: Tue, 29 Jun 2004 17:29:32 +0300 (EEST) From: Achilleus Mantzios To: java@freebsd.org In-Reply-To: <40CFFE0F.6040403@noc.ntua.gr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: FreeBSD TimeZone seems /etc/localtime agnostic! X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 15:20:52 -0000 whereas under linux emulation linux-sun-jdk1.4.2 seems to acknowledge it. E.g [root@smadev bin]# uname -a FreeBSD smadev.internal.net 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0 [root@smadev bin]# java -classpath "." foo Tue Jun 29 15:17:37 GMT 2004 sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null] [root@smadev bin]# /usr/local/linux-sun-jdk1.4.2/bin/java -classpath "." foo Tue Jun 29 18:18:09 EEST 2004 sun.util.calendar.ZoneInfo[id="Europe/Athens",offset=7200000,dstSavings=3600000,useDaylight=true,transitions=138,lastRule=java.util.SimpleTimeZone[id=Europe/Athens,offset=7200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]] [root@smadev bin]# cat foo.java public class foo { public static void main(String args[]) { System.out.println(new java.util.Date().toString()); System.out.println(java.util.TimeZone.getDefault()); } } java -version java version "1.4.2-p5" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-root_13_nov_2003_17_44) Java HotSpot(TM) Client VM (build 1.4.2-p5-root_13_nov_2003_17_44, mixed mode) [root@smadev bin]# /usr/local/linux-sun-jdk1.4.2/bin/java -version java version "1.4.2_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode) -- -Achilleus