-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
8u261
Java displays an hour off (+1) from the system date when
TZ environment variable is set to any time zone.
Java displays time correctly as the system time when
there is no TZ variable set in the environment.
On solaris sparc 64bit platform
Java works fine regardless of TZ being set.
Example:
export TZ="EST+5EDT,M3.2.0/2,M11.1.0/2"
and running :
import java.util.Date;
class ExampleDate {
public static void main(String[] args) {
Date today = new Date();
System.out.println(today);
}
}
gives different result to system date(date)
TZ environment variable is set to any time zone.
Java displays time correctly as the system time when
there is no TZ variable set in the environment.
On solaris sparc 64bit platform
Java works fine regardless of TZ being set.
Example:
export TZ="EST+5EDT,M3.2.0/2,M11.1.0/2"
and running :
import java.util.Date;
class ExampleDate {
public static void main(String[] args) {
Date today = new Date();
System.out.println(today);
}
}
gives different result to system date(date)
- relates to
-
JDK-4976879 Arbitrarily defined timezones like GMT-11 as GMT+11 are mis-interpreted
-
- Closed
-
-
JDK-6992725 SimpleDateFormat.format(Date) is an hour late for MEZ-1MESZ,M3.5.0,M10.5.0
-
- Closed
-
-
JDK-4263805 (tz) need complete support of POSIX TZ syntax
-
- Closed
-