diff --git a/src/date.js b/src/date.js index 08c121029..661341bb3 100644 --- a/src/date.js +++ b/src/date.js @@ -21,7 +21,8 @@ function DateSchema() { if (this.isType(value)) return value; value = isoParse(value); - return value ? new Date(value) : invalidDate; + // 0 is a valid timestamp equivalent to 1970-01-01T00:00:00Z(unix epoch) + return value > -1 ? new Date(value) : invalidDate; }); }); }