Skip to content

Commit

Permalink
Merge pull request #763 from tolkamps1/fix-date-handling-issue
Browse files Browse the repository at this point in the history
NOBUG: fix date handling issue
  • Loading branch information
tolkamps1 authored Jan 10, 2024
2 parents c3ec4c5 + 148c3ca commit c404e08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class DocumentEditComponent implements OnInit, OnDestroy {
}

public validateDate() {
if (!moment(this.myForm.value.datePosted).isValid()) {
if (!moment(this.utils.convertFormGroupNGBDateToJSDate(this.myForm.value.datePosted)).isValid()) {
this.dateInvalid = true;
} else {
this.dateInvalid = false;
Expand Down

0 comments on commit c404e08

Please sign in to comment.