You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is for the same reason outlined on #1210. #1221 fixed part of the issue. The exception happens when the date is serialized with java after 9 and deserialized with java 8.
A quick fix would be add function to create format for java 8:
public static DateFormat getUSDateTimeFormatAfter9(int dateStyle, int timeStyle) {
String pattern = getDatePartOfDateTimePattern(dateStyle) + ", " + getTimePartOfDateTimePattern(timeStyle); // this format is missing from java 8
return new SimpleDateFormat(pattern, Locale.US);
}
Add this to the dateFormats then java version is before 9.
The text was updated successfully, but these errors were encountered:
This is for the same reason outlined on #1210. #1221 fixed part of the issue. The exception happens when the date is serialized with java after 9 and deserialized with java 8.
A quick fix would be add function to create format for java 8:
public static DateFormat getUSDateTimeFormatAfter9(int dateStyle, int timeStyle) {
String pattern = getDatePartOfDateTimePattern(dateStyle) + ", " + getTimePartOfDateTimePattern(timeStyle); // this format is missing from java 8
return new SimpleDateFormat(pattern, Locale.US);
}
Add this to the dateFormats then java version is before 9.
The text was updated successfully, but these errors were encountered: