You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @SamComber, the server response is not used by Htmldate, the header is the one in the HTML document where a meta tag is set to a very late date, as I just checked: <meta name="created" content="6th Dec 2024 12:01">.
Sometimes the information on the pages is not reliable and it's hard to discriminate between several fields which are all plausible dates.
I noticed that
htmldate
utilizes thefind_date
function, which internally relies onexamine_header
.Does it make sense to parse the response header from the server? Do servers typically default this to the current date?
Here’s an example where this date is extracted: '2024-12-02'...
But the published at is actually...
If I comment lines on
examine_header
we do extract out the correct date (2022-12-13) during# last resort
The text was updated successfully, but these errors were encountered: