diff --git a/package-lock.json b/package-lock.json index cca14c432c..ef8ea2027b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "md5": "^2.3.0", - "moment": "^2.29.4", + "moment": "2.29.4", "ngx-markdown": "^17.1.1", "ngx-papaparse": "^8.0.0", "pouchdb-adapter-memory": "^8.0.1", @@ -20965,9 +20965,9 @@ "dev": true }, "node_modules/moment": { - "version": "2.30.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", - "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", "engines": { "node": "*" } diff --git a/package.json b/package.json index 0f8ed717ed..ed63af5b43 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "leaflet": "^1.9.4", "lodash-es": "^4.17.21", "md5": "^2.3.0", - "moment": "^2.29.4", + "moment": "2.29.4", "ngx-markdown": "^17.1.1", "ngx-papaparse": "^8.0.0", "pouchdb-adapter-memory": "^8.0.1", diff --git a/src/app/core/basic-datatypes/date/date-import-config/date-import-config.component.ts b/src/app/core/basic-datatypes/date/date-import-config/date-import-config.component.ts index 956dac0b93..7525de4db0 100644 --- a/src/app/core/basic-datatypes/date/date-import-config/date-import-config.component.ts +++ b/src/app/core/basic-datatypes/date/date-import-config/date-import-config.component.ts @@ -57,6 +57,7 @@ export class DateImportConfigComponent { checkDateValues() { this.format.setErrors(undefined); this.values.forEach((val) => { + // TODO: check and improve the date parsing. Tests fail with moment.js > 2.29 const date = moment(val.value, this.format.value?.toUpperCase(), true); if (date.isValid()) { val.parsed = date.toDate();