Skip to content

Commit

Permalink
Display dates of the form 101-01-02 as undefined as well
Browse files Browse the repository at this point in the history
In some hard to determine circumstances browsers create these dates for
undefined dates.
  • Loading branch information
kovidgoyal committed Sep 24, 2018
1 parent 40ed2e9 commit 3c6e69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyj/date.pyj
Original file line number Diff line number Diff line change
Expand Up @@ -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() {{{

Expand Down

0 comments on commit 3c6e69e

Please sign in to comment.