diff --git a/src/pyj/date.pyj b/src/pyj/date.pyj index 14c2de611a..eef6fb26a4 100644 --- a/src/pyj/date.pyj +++ b/src/pyj/date.pyj @@ -10,7 +10,7 @@ def is_date_undefined(date): return dy < uy or ( dy is uy and date.getUTCMonth() is UNDEFINED_DATE.getUTCMonth() and - date.getUTCDate() is UNDEFINED_DATE.getUTCDate()) + date.getUTCDate() <= UNDEFINED_DATE.getUTCDate() + 1) # format_date() {{{