Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2005 10:33:04 +0200 (CEST)
From:      Juergen Weiss <weiss@uni-mainz.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        weiss@uni-mainz.de
Subject:   java/84422: Timezone Handling does not work with FreeBSD jdk1.4
Message-ID:  <200508010833.j718X44L085743@zdvnetz.zdv.Uni-Mainz.DE>
Resent-Message-ID: <200508010840.j718eCgW097943@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         84422
>Category:       java
>Synopsis:       Timezone Handling does not work with FreeBSD jdk1.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 01 08:40:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Juergen Weiss
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
Johannes Gutenberg Universitaet
>Environment:
System: FreeBSD zdvnetz.zdv.Uni-Mainz.DE 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
the java runtime in jdk-1.4.2p7 is not able to extract timezone
information from the operating system, if /etc/localtime is a
symlink to a zone file in /usr/share/zoneinfo, for example
Europe/Berlin. Result is, that time functions give times in
zone GMT.
>How-To-Repeat:
	output date/time
>Fix:
*** ./j2se/src/solaris/native/java/util/TimeZone_md.c~  Tue Feb  1 11:20:20 2005
--- ./j2se/src/solaris/native/java/util/TimeZone_md.c   Sun Jul 31 11:59:51 2005
***************
*** 236,242 ****
        return NULL;
      }
  
! #if defined(__linux__)
      /*
       * If it's a symlink, get the link name and its zone ID part. (The
       * older versions of timeconfig created a symlink as described in
--- 236,242 ----
        return NULL;
      }
  
! #if defined(__linux__) || defined(_BSD_SOURCE)
      /*
       * If it's a symlink, get the link name and its zone ID part. (The
       * older versions of timeconfig created a symlink as described in



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508010833.j718X44L085743>