-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
17
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
Apple silicon AArch64 M2, MacOS X 14.6.1
Oracle JDK 17.0.10 build 17.0.10+11-LTS-240
A DESCRIPTION OF THE PROBLEM :
Tried to use Java.time.LocalDate and java.time.format.DateTimeFormatter to print out date/time string, but print out is not I expected.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
public class JakartaDateTime {
public static void main(String[] args) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss yyyy");
LocalDateTime now = LocalDateTime.now();
System.out.println(formatter.format(now));
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Fri Sep 06 19:10:54 2024
ACTUAL -
Fri Sept 06 19:10:54 2024
---------- BEGIN SOURCE ----------
Shown in step to produce, only a very simple class to print out a date/time string, by pattern advised as "EEE MMM dd HH:mm:ss yyyy".
Please note, The actually print out shows the month (September) as "Sept", it is four characters in length, in my formatter pattern, only three "MMM" advised.
This bug will cause serious issue when we use it to do the GSON JSON to java class mapping, I never get it correct.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
There is no work around exists. Very high priority to fix it.
FREQUENCY : always
Apple silicon AArch64 M2, MacOS X 14.6.1
Oracle JDK 17.0.10 build 17.0.10+11-LTS-240
A DESCRIPTION OF THE PROBLEM :
Tried to use Java.time.LocalDate and java.time.format.DateTimeFormatter to print out date/time string, but print out is not I expected.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
public class JakartaDateTime {
public static void main(String[] args) {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss yyyy");
LocalDateTime now = LocalDateTime.now();
System.out.println(formatter.format(now));
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Fri Sep 06 19:10:54 2024
ACTUAL -
Fri Sept 06 19:10:54 2024
---------- BEGIN SOURCE ----------
Shown in step to produce, only a very simple class to print out a date/time string, by pattern advised as "EEE MMM dd HH:mm:ss yyyy".
Please note, The actually print out shows the month (September) as "Sept", it is four characters in length, in my formatter pattern, only three "MMM" advised.
This bug will cause serious issue when we use it to do the GSON JSON to java class mapping, I never get it correct.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
There is no work around exists. Very high priority to fix it.
FREQUENCY : always