diff --git a/fittrackee_client/src/utils/dates.ts b/fittrackee_client/src/utils/dates.ts index 321d3f3c..2736dbee 100644 --- a/fittrackee_client/src/utils/dates.ts +++ b/fittrackee_client/src/utils/dates.ts @@ -94,7 +94,7 @@ const availableDateFormats = [ 'date_string', ] const dateStringFormats: Record = { - de: 'd MMM yyyy', + de: 'do MMM yyyy', en: 'MMM. do, yyyy', fr: 'd MMM yyyy', } diff --git a/fittrackee_client/tests/unit/utils/dates.spec.ts b/fittrackee_client/tests/unit/utils/dates.spec.ts index b9d84ed8..50b84c1d 100644 --- a/fittrackee_client/tests/unit/utils/dates.spec.ts +++ b/fittrackee_client/tests/unit/utils/dates.spec.ts @@ -335,7 +335,7 @@ describe('getDateFormat', () => { dateFormat: 'date_string', language: 'de', }, - expectedFormat: 'd MMM yyyy', + expectedFormat: 'do MMM yyyy', }, ] testsParams.map((testParams) => { @@ -380,7 +380,7 @@ describe('availableDateFormatOptions', () => { { label: 'dd/MM/yyyy - 09/10/2022', value: 'dd/MM/yyyy' }, { label: 'MM/dd/yyyy - 10/09/2022', value: 'MM/dd/yyyy' }, { label: 'yyyy-MM-dd - 2022-10-09', value: 'yyyy-MM-dd' }, - { label: 'd MMM yyyy - 9 Okt. 2022', value: 'date_string' }, + { label: 'do MMM yyyy - 9. Okt. 2022', value: 'date_string' }, ], }, ]