diff --git a/VERSION b/VERSION index 4b20d97..a228920 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.4.8 +6.4.9 diff --git a/play-life-web/package.json b/play-life-web/package.json index 15588d6..ff7ae64 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.4.8", + "version": "6.4.9", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/ShoppingList.jsx b/play-life-web/src/components/ShoppingList.jsx index 4fd8299..5a4a6f5 100644 --- a/play-life-web/src/components/ShoppingList.jsx +++ b/play-life-web/src/components/ShoppingList.jsx @@ -577,8 +577,13 @@ function ShoppingList({ onNavigate, refreshTrigger = 0, isActive = false, initia {group.active.map(item => { let dateDisplay = null if (item.next_show_at) { - dateDisplay = formatDateForDisplay(item.next_show_at) - if (dateDisplay === 'Сегодня') dateDisplay = null + const itemDate = new Date(item.next_show_at) + const now = new Date() + now.setHours(0, 0, 0, 0) + const target = new Date(itemDate.getFullYear(), itemDate.getMonth(), itemDate.getDate()) + if (target > now) { + dateDisplay = formatDateForDisplay(item.next_show_at) + } } return (