From d0548203c19d8a7ab52308e027f3ab6f878e88c4 Mon Sep 17 00:00:00 2001 From: AlexisG Date: Mon, 6 Jan 2025 11:02:01 +0100 Subject: [PATCH] fix(models/paper): Change date format Following the date-fns update on cozy-ui and the apps, the date format is changing. --- packages/cozy-client/src/models/paper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cozy-client/src/models/paper.js b/packages/cozy-client/src/models/paper.js index 2cf38a2b5..3405965e4 100644 --- a/packages/cozy-client/src/models/paper.js +++ b/packages/cozy-client/src/models/paper.js @@ -332,9 +332,9 @@ export const formatDateMetadataValue = (value, { lang, f }) => { if (value) { if (lang === 'en') { - return f(value, 'MM/DD/YYYY') + return f(value, 'LL/dd/yyyy') } - return f(value, 'DD/MM/YYYY') + return f(value, 'dd/LL/yyyy') } else { return t('Scan.qualification.noInfo') }