diff --git a/src/pages/PluginDetail.tsx b/src/pages/PluginDetail.tsx index 3f0b440..54b12b4 100644 --- a/src/pages/PluginDetail.tsx +++ b/src/pages/PluginDetail.tsx @@ -69,6 +69,14 @@ const getInitials = (username: string) => { return username.slice(0, 2).toUpperCase(); }; +const formatDate = (dateStr: string) => { + const d = new Date(dateStr); + const day = d.getDate(); + const month = d.toLocaleString('en-US', { month: 'short' }); + const year = d.getFullYear(); + return `${day} ${month}, ${year}`; +}; + const PluginDetail = () => { const { id } = useParams(); const { user } = useAuth(); @@ -680,7 +688,7 @@ const PluginDetail = () => {