From 3c6e69e79ad5228d147422481d07c932ccd28073 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Sep 2018 06:10:17 +0530 Subject: [PATCH] Display dates of the form 101-01-02 as undefined as well In some hard to determine circumstances browsers create these dates for undefined dates. --- src/pyj/date.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {{{