JDK-4029456 : API: strange effects with timezones whose abbrev matches a US timezone
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1997-01-31
  • Updated: 1997-10-23
  • Resolved: 1997-10-23
Related Reports
Duplicate :  
Description

Name: mc57594			Date: 01/31/97


My TZ environment variable is Australia/South
date displays as Fri Jan 31 16:27:26 CST 1997

I create a date by calling getLastModified() on a URLConnection
This seems to be created from the Last-modified: line in the HTTP
headers, which is expressed as 
Last-modified: Tue, 21 Jan 1997 02:56:21 GMT

The date displays correctly using the (deprecated) toGMTString()
method, but displays wrongly as Mon Jan 20 20:56:21 CST 1997
when using the default conversion to string. It should be
Tue Jan 21 13:26:21 CST 1997.

The timezone for South Australia is abbreviated to CST, the same
as a timezone in the USA.

company  -  DSTO Salisbury  , email  -  ###@###.###
======================================================================

Comments
WORK AROUND Name: mc57594 Date: 01/31/97 ======================================================================
11-06-2004