Move revision end check date from now to the future, to combat time zones and time differences. Using same markup as time_past because I'm bored, even though it's not wise. Closes PHP Bug #54843

This commit is contained in:
Philip Olson
2011-05-26 05:30:18 +00:00
parent c66220094e
commit 7e92c23b64

View File

@ -40,7 +40,7 @@ define('DAYS_LOOKUP', 7); // Number of days, in the past, to search/use for the
$svn_modules = array('phpdoc', 'phd', 'web/doc-editor');
$time_past = date('Y-m-d', strtotime('-'. DAYS_LOOKUP . ' days'));
$time_now = date('Y-m-d');
$time_future = date('Y-m-d', strtotime('+'. DAYS_LOOKUP . ' days'));
if (!function_exists('sqlite_open')) {
echo 'Fail. I require ext/sqlite to work.', PHP_EOL;
@ -66,7 +66,7 @@ $counts = array();
$text = '';
foreach ($svn_modules as $svn_module) {
$command = "svn log http://svn.php.net/repository/$svn_module --revision \{$time_past}:\{$time_now} --non-interactive --xml";
$command = "svn log http://svn.php.net/repository/$svn_module --revision \{$time_past}:\{$time_future} --non-interactive --xml";
$results = shell_exec($command);
// Elementless XML file has strlen of 35