nox-validation 1.5.7 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/validate.js +1 -10
- package/package.json +1 -1
package/lib/validate.js
CHANGED
|
@@ -696,16 +696,7 @@ const validateOperatorRule = (
|
|
|
696
696
|
}
|
|
697
697
|
if (isDateTime) {
|
|
698
698
|
if (forMessage) {
|
|
699
|
-
|
|
700
|
-
return (
|
|
701
|
-
`${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(
|
|
702
|
-
2,
|
|
703
|
-
"0"
|
|
704
|
-
)}-${String(date.getUTCDate()).padStart(2, "0")} ` +
|
|
705
|
-
`${String(date.getUTCHours()).padStart(2, "0")}:${String(
|
|
706
|
-
date.getUTCMinutes()
|
|
707
|
-
).padStart(2, "0")}:${String(date.getUTCSeconds()).padStart(2, "0")}`
|
|
708
|
-
);
|
|
699
|
+
return value;
|
|
709
700
|
}
|
|
710
701
|
// Return UTC timestamp for comparison
|
|
711
702
|
return parseDateTimeToUTC(value);
|