Skip to content
Snippets Groups Projects
Commit ec211c95 authored by Andréas Livet's avatar Andréas Livet
Browse files

Fix timezone issue for Collection date

parent a3526c7e
Branches
Tags
No related merge requests found
Pipeline #566320 failed
......@@ -140,7 +140,8 @@ export function CollectionManagment() {
title={item.description || DEFAULT_COLLECTION_DESC}
desc={`Créée il y a
${formatDistance(
new Date(item.created_at),
// We need to add the timezone since the datetime is store without timezone
new Date(item.created_at + "Z"),
new Date(),
{ locale: localFr } // Pass the locale as an option
)}`}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment