From bd40ee6e5ff8266293860053e25ee7bfe1a1f349 Mon Sep 17 00:00:00 2001 From: riteshrana12-dev Date: Fri, 1 May 2026 01:43:55 +0530 Subject: [PATCH] fix(common): correct Date constructor usage in formatDate utility --- src/common/utils/commonUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/commonUtils.js b/src/common/utils/commonUtils.js index e7adf1edad..69712e526b 100644 --- a/src/common/utils/commonUtils.js +++ b/src/common/utils/commonUtils.js @@ -48,7 +48,7 @@ export function formatDate(dateString) { const [year, month, day] = datePart.split('-'); // Convert the month number to the month name - const monthName = Date(year, month, day).split(' '); + const monthName = new Date(year, month - 1, day).toLocaleString('default', { month: 'short' }); const formattedDate = `Joined ${day} ${monthName[1]} ${year}`;