diff --git a/front/src/assets/userCategories.ts b/front/src/assets/userCategories.ts index f98a907..fc579be 100644 --- a/front/src/assets/userCategories.ts +++ b/front/src/assets/userCategories.ts @@ -13,7 +13,7 @@ const UserCategoriesNames: Record = { const userCategoriesInfos: Record string> = { givingOut: (ann: Announcement) => ( - `Годен до ${new Date(ann.bestBy).toLocaleDateString('ru')}` + `Годен до ${ann.bestBy}` ), needDispose: (ann: Announcement) => ( `Было заинтересно ${ann.bookedBy} чел.` diff --git a/front/src/components/AnnouncementDetails.tsx b/front/src/components/AnnouncementDetails.tsx index 3a9ed35..6693693 100644 --- a/front/src/components/AnnouncementDetails.tsx +++ b/front/src/components/AnnouncementDetails.tsx @@ -38,7 +38,7 @@ const View = ({ {categoryNames[category]} {/* dot */} - Годен до {new Date(bestBy).toLocaleString('ru-RU')} + Годен до {bestBy}

{description}

@@ -84,10 +84,10 @@ function Control({ <>

Забронировали {bookedBy + (bookButton.disabled ? 1 : 0)} чел.

{(myId === userId) ? ( - <> - - +