Minor fixes following up Temporal refactor (#18139)
Fixes https://github.com/twentyhq/core-team-issues/issues/2034
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ export const getRelativeDateDisplayValue = (
|
||||
const timeZoneAbbreviation =
|
||||
getRelativeDateFilterTimeZoneAbbreviation(relativeDate);
|
||||
|
||||
unitFormatted = `${unitFormatted ?? ''} ${shouldDisplayTimeZoneAbbreviation ? `(${timeZoneAbbreviation})` : ''}`;
|
||||
unitFormatted = `${unitFormatted ?? ''}${shouldDisplayTimeZoneAbbreviation ? ` (${timeZoneAbbreviation})` : ''}`;
|
||||
}
|
||||
|
||||
return [directionFormatted, amountFormatted, unitFormatted]
|
||||
|
||||
+5
-2
@@ -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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user