Skip to content

Commit

Permalink
NOBUG: fix date handling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tolkamps1 committed Jan 3, 2024
1 parent 6299690 commit 244b3f0
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 244b3f0

Please sign in to comment.