Skip to content

Commit

Permalink
Date is equals also
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Jan 24, 2025
1 parent e291c61 commit ee831c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/measurements.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function IsValidDateInThePast(validationOptions?: ValidationOptions) {
return false
}

return value < new Date()
return value <= new Date()
},
defaultMessage(args: ValidationArguments): string {
return `${args.property} is not a valid datetime in the past`
Expand Down

0 comments on commit ee831c9

Please sign in to comment.