Skip to content

Commit 43f44ae

Browse files
Revert "hasLongYear was giving wrong result"
This reverts commit 934d354.
1 parent 934d354 commit 43f44ae

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

common/src/main/java/com/genexus/LocalUtil.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,17 +1030,6 @@ private static boolean hasLongYear(String date)
10301030
if (!getBLANK_EMPTY_DATE() && date.indexOf(" ") != -1)
10311031
return true;
10321032

1033-
String separator = "";
1034-
if (date.contains("/"))
1035-
separator = "/" ;
1036-
else
1037-
separator = "-";
1038-
String[] parts = date.split(separator);
1039-
for (String part : parts) {
1040-
if (part.length() == 4 && part.matches("\\d{4}"))
1041-
return true;
1042-
}
1043-
10441033
return date.length() == 10 || date.length() == 19;
10451034
}
10461035

0 commit comments

Comments
 (0)