FULL PRODUCT VERSION :
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux 4.1.6-1-ARCH x86_64
A DESCRIPTION OF THE PROBLEM :
Attempting to parse the .toString output of any ZonedDateTime in the 'GMT0' TimeZone results in a DateTimeParseException.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
ZonedDateTime zdt = ZonedDateTime.now(ZoneId.of("GMT0"));
ZonedDateTime.parse(zdt.toString);
---------- END SOURCE ----------
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux 4.1.6-1-ARCH x86_64
A DESCRIPTION OF THE PROBLEM :
Attempting to parse the .toString output of any ZonedDateTime in the 'GMT0' TimeZone results in a DateTimeParseException.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
ZonedDateTime zdt = ZonedDateTime.now(ZoneId.of("GMT0"));
ZonedDateTime.parse(zdt.toString);
---------- END SOURCE ----------
- duplicates
-
JDK-8224268 DateTimeFormatter.ISO_DATE_TIME cannot parse "GMT0" ZoneId
- Closed