From a763ec441209fdac872b110871496c0b25d70032 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Tue, 29 Jul 2025 11:47:30 +0530 Subject: [PATCH] =?UTF-8?q?Date=20Format=20Not=20Consistent=20=E2=80=93=20?= =?UTF-8?q?Should=20Always=20Display=20DD=E2=80=91MM=E2=80=91YYYY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Directory/NoteCardDirectoryEditable.jsx | 2 +- src/components/Directory/ProfileContactDirectory.jsx | 2 +- src/pages/Gallary/ImageGallary.jsx | 2 +- src/utils/dateUtils.jsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Directory/NoteCardDirectoryEditable.jsx b/src/components/Directory/NoteCardDirectoryEditable.jsx index de91ad69..5ccfefdf 100644 --- a/src/components/Directory/NoteCardDirectoryEditable.jsx +++ b/src/components/Directory/NoteCardDirectoryEditable.jsx @@ -153,7 +153,7 @@ const NoteCardDirectoryEditable = ({ .utc(noteItem?.createdAt) .add(5, "hours") .add(30, "minutes") - .format("MMMM DD, YYYY [at] hh:mm A")} + .format("DD MMMM, YYYY [at] hh:mm A")} diff --git a/src/components/Directory/ProfileContactDirectory.jsx b/src/components/Directory/ProfileContactDirectory.jsx index 7e30aa71..f7e8c456 100644 --- a/src/components/Directory/ProfileContactDirectory.jsx +++ b/src/components/Directory/ProfileContactDirectory.jsx @@ -160,7 +160,7 @@ const ProfileContactDirectory = ({ contact, setOpen_contact, closeModal }) => {
- {moment(profileContactState.createdAt).format("MMMM DD, YYYY")} + {moment(profileContactState.createdAt).format("DD MMMM, YYYY")}
diff --git a/src/pages/Gallary/ImageGallary.jsx b/src/pages/Gallary/ImageGallary.jsx index b73ed02a..d92ce8ca 100644 --- a/src/pages/Gallary/ImageGallary.jsx +++ b/src/pages/Gallary/ImageGallary.jsx @@ -394,7 +394,7 @@ useEffect(() => { > {batch.documents.map((d, i) => { const hoverDate = moment(d.uploadedAt).format( - "DD-MM-YYYY" + "DD MMMM, YYYY" ); const hoverTime = moment(d.uploadedAt).format( "hh:mm A" diff --git a/src/utils/dateUtils.jsx b/src/utils/dateUtils.jsx index 4d6643b6..d788f19c 100644 --- a/src/utils/dateUtils.jsx +++ b/src/utils/dateUtils.jsx @@ -68,7 +68,7 @@ export const formatNumber = (num) => { return Number.isInteger(num) ? num : num.toFixed(2); }; export const formatUTCToLocalTime = (datetime) =>{ - return moment.utc(datetime).local().format("MMMM DD, YYYY [at] hh:mm A"); + return moment.utc(datetime).local().format("DD MMMM, YYYY [at] hh:mm A"); } export const getCompletionPercentage = (completedWork, plannedWork)=> {