mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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.
This commit is contained in:
parent
40ed2e9f0e
commit
3c6e69e79a
@ -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() {{{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user