Skip to content

Commit e4dd7b3

Browse files
authored
Fix: Picture string with ordinal not parsed correctly. #310 (#311)
1 parent 5946c86 commit e4dd7b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/api/jsonata4java/expressions/utils/DateTimeUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ private static PictureFormat analyseDateTimePicture(String picture) {
636636
}
637637
} else if ("YMDdFWwXxHhmsf".indexOf(def.component) != -1) {
638638
String integerPattern = def.presentation1;
639-
if (def.presentation2 == null) {
639+
if (def.presentation2 != null) {
640640
integerPattern += ";" + def.presentation2;
641641
}
642642
def.integerFormat = analyseIntegerPicture(integerPattern);

0 commit comments

Comments
 (0)