Skip to content

Commit

Permalink
fix(models/paper): Change date format
Browse files Browse the repository at this point in the history
Following the date-fns update on cozy-ui and the apps,
the date format is changing.
  • Loading branch information
Merkur39 committed Jan 6, 2025
1 parent 5b59b97 commit d054820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cozy-client/src/models/paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down

0 comments on commit d054820

Please sign in to comment.