Remove Luxon from codebase (#14448)

Fixes #14444 

We shouldn't have 2 libraries to manage dates, one is enough
This commit is contained in:
Félix Malfait
2025-09-12 23:25:05 +02:00
committed by GitHub
parent 1e97ad48c0
commit a0cfff6000
21 changed files with 215 additions and 290 deletions
@@ -4,7 +4,7 @@ export const formatToHumanReadableMonth = (
date: Date | string,
timeZone: string,
) => {
const parsedJSDate = parseDate(date).toJSDate();
const parsedJSDate = parseDate(date);
return new Intl.DateTimeFormat(undefined, {
month: 'short',
@@ -16,7 +16,7 @@ export const formatToHumanReadableDay = (
date: Date | string,
timeZone: string,
) => {
const parsedJSDate = parseDate(date).toJSDate();
const parsedJSDate = parseDate(date);
return new Intl.DateTimeFormat(undefined, {
day: 'numeric',
@@ -28,7 +28,7 @@ export const formatToHumanReadableTime = (
date: Date | string,
timeZone: string,
) => {
const parsedJSDate = parseDate(date).toJSDate();
const parsedJSDate = parseDate(date);
return new Intl.DateTimeFormat(undefined, {
hour: 'numeric',