Skip to content

The open alternative to Salesforce, designed for AI.

Minor fixes following up Temporal refactor (#18139)

Lucas Bordeau26fabdc3d0a4
diff --git a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getRelativeDateDisplayValue.ts b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getRelativeDateDisplayValue.ts
index 191ea45b73f..3ad5bd0faba 100644
--- a/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getRelativeDateDisplayValue.ts
+++ b/packages/twenty-front/src/modules/object-record/object-filter-dropdown/utils/getRelativeDateDisplayValue.ts
@@ -29,7 +29,7 @@ export const getRelativeDateDisplayValue = (
const timeZoneAbbreviation =
getRelativeDateFilterTimeZoneAbbreviation(relativeDate);
- unitFormatted = `${unitFormatted ?? ''} ${shouldDisplayTimeZoneAbbreviation ? `(${timeZoneAbbreviation})` : ''}`;
+ unitFormatted = `${unitFormatted ?? ''}${shouldDisplayTimeZoneAbbreviation ? ` (${timeZoneAbbreviation})` : ''}`;
}
return [directionFormatted, amountFormatted, unitFormatted]
diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePicker.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePicker.tsx
index cf4682743c0..df4760b36df 100644
--- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePicker.tsx
+++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/DateTimePicker.tsx
@@ -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;
})