Skip to content

Commit

Permalink
Merge branch 'main' into text-and-icon-color-contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
idaho committed Apr 2, 2024
2 parents 9b8028c + c111434 commit f1e97cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/getDateString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const getDateString = (
undefined;

if (stateDay === todayDay || stateDay === tomorrowDay) {
return getTimeString(customLocalize, stateDay === todayDay ? 'today' : 'tomorrow', undefined, startTime, endTime, excludeTime, true);
return getTimeString(customLocalize, stateDay === todayDay ? 'today' : 'tomorrow', undefined, startTime, endTime, excludeTime, false);
}

if (dayStyle === 'counter') {
Expand All @@ -94,7 +94,7 @@ const getDateString = (
}) :
format(item.date.start, dayStyleFormat ?? 'dd.mm.YYYY');

return getTimeString(customLocalize, 'day', day, startTime, endTime, excludeTime, true);
return getTimeString(customLocalize, 'day', day, startTime, endTime, excludeTime, false);
};

export {
Expand Down

0 comments on commit f1e97cb

Please sign in to comment.