Skip to content

Commit

Permalink
Merge pull request #2983 from the-deep/fix/generate-analysis-date
Browse files Browse the repository at this point in the history
Update date format for generate analysis date
  • Loading branch information
AdityaKhatri authored Aug 9, 2024
2 parents 1a7bf10 + e32f9fe commit 432ac63
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
} from '@the-deep/deep-ui';
import {
isDefined,
encodeDate,
formatDateToString,
_cs,
unique,
listToGroupList,
Expand Down Expand Up @@ -120,7 +120,8 @@ function generateReportText(entry: Entry) {

const entryCreatedDate = new Date(entry.lead.publishedOn);

return `${entryText}([${organizations}](${url}), ${encodeDate(entryCreatedDate)}).`;
const formattedDate = formatDateToString(entryCreatedDate, 'dd/MM/yyyy');
return `${entryText}([${organizations}](${url}), ${formattedDate}).`;
}

interface Props {
Expand Down

0 comments on commit 432ac63

Please sign in to comment.