Fix park opening date display

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 16:32:32 +00:00
parent 08f9144527
commit 502d893e38

View File

@@ -365,7 +365,7 @@ export default function ParkDetail() {
</div>
</div>
<div className="text-xs font-medium text-foreground">
{park.opening_date ? `Opened ${new Date(park.opening_date).getFullYear()}` : 'Opening Soon'}
{park.opening_date ? `Opened ${park.opening_date.split('-')[0]}` : 'Opening Soon'}
</div>
</CardContent>