diff --git a/ipi-survey-platform/src/components/admin/SubmissionTable.jsx b/ipi-survey-platform/src/components/admin/SubmissionTable.jsx index 2ed0e26..8ce769e 100644 --- a/ipi-survey-platform/src/components/admin/SubmissionTable.jsx +++ b/ipi-survey-platform/src/components/admin/SubmissionTable.jsx @@ -86,14 +86,15 @@ const SubmissionTable = ({ selectedQuarter, selectedYear }) => { year: 'numeric', hour: '2-digit', minute: '2-digit', - hour12: true, + hour12: false }; - // Format the date in Dubai time - let formatted = new Intl.DateTimeFormat('en-GB', options).format(date); + // Format the date in Dubai time with 24-hour format + const formatter = new Intl.DateTimeFormat('en-GB', options); + let formatted = formatter.format(date); - // Convert to uppercase AM/PM and ensure consistent formatting - formatted = formatted.replace(/\s?(am|pm)$/i, (match) => match.toUpperCase()); + // Remove any AM/PM indicator since we're using 24-hour format + formatted = formatted.replace(/\s*[AP]M$/, '').trim(); return formatted; }; diff --git a/ipi-survey-platform/src/components/overview/ProductDetails.jsx b/ipi-survey-platform/src/components/overview/ProductDetails.jsx index c957adb..f6cc50d 100644 --- a/ipi-survey-platform/src/components/overview/ProductDetails.jsx +++ b/ipi-survey-platform/src/components/overview/ProductDetails.jsx @@ -410,7 +410,7 @@ const ProductDetails = ({