Branch for improving date guessing, refs #4724
use GMT timezone internally (otherwise tests fail in non-EST timezones); assume that dates without a timezone are GMT
use timestamp constants instead of calling str2time() every time (the tests should catch failures of str2time() that way)
rename private methods to names prefixed with '_' in order to figure out which ones should be testable
assume that dates without a timezone are GMT
rename epoch date to UNIX timestamp to be more consistent
separate guess_date() subroutine (returns string date) and guess_timestamp() (returns UNIX timestamp)
rename $xpath variable to $html_tree to better represent the contents of the variable
check if timestamp is defined (because timestamp = 0 is a legal timestamp)
guess_date() tests moved to a unit test; tests for guess_by_url() and guess_by_url_and_date_text()
scripts in archive use the updated date guesser module too
date from OpenGraph's <meta property="article:published_time" /> tag
commented regexes; support for "Wednesday, 29 August 2012 03:55" dates
testing with live URLs
rename test to better reflect what does it test
HTTP Last-Modified dates
attempt to match dates with Regexp::Common::time
DYI date string matching framework (CPAN modules weren't flexible enough or relied on locale settings); test date string parsing separately
if there are 2+ timestamps found on an HTML page and the first one looks like "now", assume that the second one is more likely to be a publication date
decrease the "now" threshold to 5 minutes so recently published articles will be less likely misdated