Skip to content

Commit 0d5b2f6

Browse files
committed
fix in /knowledge date format
1 parent 4aa664d commit 0d5b2f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/routes/knowledge/shared.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const formatKnowledgeDate = (dateValue) => {
22
const date = new Date(dateValue);
3-
return `${date.getMonth()}/${date.getDate()}/${date.getFullYear()}`;
3+
// British style, not USA style, or the validator will complain
4+
return `${date.getDate()}/${date.getMonth()}/${date.getFullYear()}`;
45
};
56

67
const buildKnowledgeResponse = ({

0 commit comments

Comments
 (0)