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.
Files changed (2) hide show
  1. package/lib/validate.js +1 -10
  2. 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
- const date = new Date(value);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {