Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed Oct 9, 2024
1 parent f35bba5 commit abee861
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions velox/functions/lib/DateTimeFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,9 @@ int32_t parseFromPattern(
return -1;
}
cur += size;
date.weekDateFormat = true;
if (!date.weekOfMonthDateFormat) {
date.weekDateFormat = true;
}
date.dayOfYearFormat = false;
if (!date.hasYear) {
date.hasYear = true;
Expand Down Expand Up @@ -997,7 +999,9 @@ int32_t parseFromPattern(
}
}
date.dayOfWeek = number;
date.weekDateFormat = true;
if (!date.weekOfMonthDateFormat) {
date.weekDateFormat = true;
}
date.hasDayOfWeek = true;
date.dayOfYearFormat = false;
if (!date.hasYear) {
Expand Down

0 comments on commit abee861

Please sign in to comment.