Skip to content

Commit 44f92b0

Browse files
iroquetaBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:fix/CtotWithEmptyDates' into beta
1 parent ae7fa71 commit 44f92b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ public Date ctotex(String date, int format)
10951095
{
10961096
//When parsing a date gives a ParseException we try with setLenient(true) to parse dates only with dates with
10971097
//daylighttime changes at 00:00 AM (Issue: 93038)
1098-
if (!isNullTimeValue(date.substring(date.indexOf(' ') + 1), false) && !isNullDateValue(date.substring(0, date.indexOf(' '))))
1098+
if (date.indexOf(' ') == -1 || !isNullTimeValue(date.substring(date.indexOf(' ') + 1), false) && !isNullDateValue(date.substring(0, date.indexOf(' '))))
10991099
return null;
11001100
df.setLenient(true);
11011101
try

0 commit comments

Comments
 (0)