Skip to content

Commit 3705270

Browse files
committed
feat: Update event date formatting on Events page
- Enhanced the date display for featured events to use the Georgian locale, providing a more localized and user-friendly format. - Updated the date formatting to include year, month, and day for better clarity.
1 parent 8c3ddd3 commit 3705270

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pages/Events.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ const Events = () => {
7474
<div className="mb-4 flex items-center gap-4 text-muted-foreground">
7575
<div className="flex items-center gap-1">
7676
<Calendar className="h-4 w-4" />
77-
<span>{new Date(featuredEvent.date).toLocaleDateString()}</span>
77+
<span>
78+
{new Date(featuredEvent.date).toLocaleDateString('ka-GE', {
79+
year: 'numeric',
80+
month: 'long',
81+
day: 'numeric',
82+
})}
83+
</span>
7884
</div>
7985
<div className="flex items-center gap-1">
8086
<MapPin className="h-4 w-4" />

0 commit comments

Comments
 (0)