Skip to content

Commit

Permalink
Merge pull request #19347 from unoplatform/dev/youssef/datetimeformatter
Browse files Browse the repository at this point in the history
fix(reg): Fix DateTimeFormatter for "day" only
  • Loading branch information
jeromelaban authored Jan 28, 2025
2 parents 271a650 + 3368e27 commit f84c545
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ private string BuildPattern()
{
datePattern = _firstCulture.DateTimeFormat.MonthDayPattern;
}
else if (hasDay && !hasMonth && !hasYear && !hasDayOfWeek)
{
datePattern = "d";
}
else
{
// Fallback case.
Expand Down

0 comments on commit f84c545

Please sign in to comment.