Testing in local validated.

This commit is contained in:
charlesgauthereau
2025-07-16 20:16:18 +02:00
parent de9fe33194
commit 5e704ec18a
21 changed files with 598 additions and 591 deletions
+7 -1
View File
@@ -12,6 +12,12 @@ export function timeAgo(rawDate: string | number | Date) {
export function formatDateLastContact(lastContact: string | number | Date | null) {
console.log(lastContact)
return lastContact
? format(new Date(lastContact), 'dd/MM/yyyy HH:mm')
? formatFrenchDate(lastContact)
: "Never connected."
}
export function formatFrenchDate(date: string | number | Date) {
return new Date(date).toLocaleString("fr-FR", {
timeZone: "Europe/Paris",
});
}
+2 -2
View File
@@ -5,7 +5,7 @@ export const getServerUrl = () => {
return window.location.origin;
}
if (env.NODE_ENV === "development") {
return `http://${env.NEXT_PUBLIC_PROJECT_URL}`;
return `${env.NEXT_PUBLIC_PROJECT_URL}`;
}
return `https://${env.NEXT_PUBLIC_PROJECT_URL}`;
return `${env.NEXT_PUBLIC_PROJECT_URL}`;
};