Minor fixes following up Temporal refactor (#18139)

Fixes https://github.com/twentyhq/core-team-issues/issues/2034
This commit is contained in:
Lucas Bordeau
2026-02-20 16:54:38 +01:00
committed by GitHub
parent 82617727a2
commit 26fabdc3d0
2 changed files with 6 additions and 3 deletions
@@ -29,7 +29,7 @@ export const getRelativeDateDisplayValue = (
const timeZoneAbbreviation =
getRelativeDateFilterTimeZoneAbbreviation(relativeDate);
unitFormatted = `${unitFormatted ?? ''} ${shouldDisplayTimeZoneAbbreviation ? `(${timeZoneAbbreviation})` : ''}`;
unitFormatted = `${unitFormatted ?? ''}${shouldDisplayTimeZoneAbbreviation ? ` (${timeZoneAbbreviation})` : ''}`;
}
return [directionFormatted, amountFormatted, unitFormatted]
@@ -451,9 +451,12 @@ export const DateTimePicker = ({
? highlightedDates.map((plainDate) => {
const date = new Date();
date.setDate(plainDate.day);
date.setMonth(plainDate.month - 1);
date.setDate(1);
date.setFullYear(plainDate.year);
date.setMonth(plainDate.month - 1);
date.setDate(plainDate.day);
return date;
})