Skip to content

Commit 4e5770a

Browse files
author
Dhirenderchoudhary
committed
UTC added sethours
1 parent ec2dd41 commit 4e5770a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middlewares/validators/oooRequests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const createOooStatusRequestValidator = async (
1414
.keys({
1515
from: joi
1616
.number()
17-
.min(new Date().setHours(0, 0, 0, 0))
17+
.min(new Date().setUTCHours(0, 0, 0, 0))
1818
.messages({
1919
"number.min": "from date must be greater than or equal to Today's date",
2020
})

0 commit comments

Comments
 (0)