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
@@ -1,4 +1,4 @@
import { DateTime } from 'luxon';
import { addDays } from 'date-fns';
import { useState } from 'react';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
@@ -72,9 +72,10 @@ export const SettingsDevelopersApiKeysNew = () => {
);
const handleSave = async () => {
const expiresAt = DateTime.now()
.plus({ days: formValues.expirationDate ?? 30 })
.toString();
const expiresAt = addDays(
new Date(),
formValues.expirationDate ?? 30,
).toISOString();
const roleIdToUse = formValues.roleId;