A DESCRIPTION OF THE PROBLEM :
Wrong year is being printed when getting date in requested format.
REGRESSION : Last worked in version 8u212
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(
ZonedDateTime.of(2021, 12, 26, 0, 0, 0, 0, ZoneId.of("Europe/London")).format(DateTimeFormatter.ofPattern("d MMMM YYYY"))
);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
26 December 2021
ACTUAL -
26 December 2022
---------- BEGIN SOURCE ----------
System.out.println(
ZonedDateTime.of(2021, 12, 26, 0, 0, 0, 0, ZoneId.of("Europe/London")).format(DateTimeFormatter.ofPattern("d MMMM YYYY"))
);
---------- END SOURCE ----------
FREQUENCY : always
Wrong year is being printed when getting date in requested format.
REGRESSION : Last worked in version 8u212
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.out.println(
ZonedDateTime.of(2021, 12, 26, 0, 0, 0, 0, ZoneId.of("Europe/London")).format(DateTimeFormatter.ofPattern("d MMMM YYYY"))
);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
26 December 2021
ACTUAL -
26 December 2022
---------- BEGIN SOURCE ----------
System.out.println(
ZonedDateTime.of(2021, 12, 26, 0, 0, 0, 0, ZoneId.of("Europe/London")).format(DateTimeFormatter.ofPattern("d MMMM YYYY"))
);
---------- END SOURCE ----------
FREQUENCY : always