Skip to content

Commit

Permalink
fix: pin momentjs version as some date parsing (or tests) are failing
Browse files Browse the repository at this point in the history
in DateImportConfigComponent
  • Loading branch information
sleidig committed Mar 21, 2024
1 parent 822b448 commit 0b6dd33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0b6dd33

Please sign in to comment.