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 - ###@###.###
======================================================================
- duplicates
-
JDK-4069784 TimeZone.getDefault() returns incorrect time zome.
-
- Closed
-