svn: /web/doc/trunk/scripts/ gen_doc_activity_email.php

From: Date: Thu, 26 May 2011 05:30:18 +0000
Subject: svn: /web/doc/trunk/scripts/ gen_doc_activity_email.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1992@lists.php.net to get a copy of this message
philip Thu, 26 May 2011 05:30:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311431 Log: 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 Bug: http://bugs.php.net/54843 (Open) doc activity stats requires time sync Changed paths: U web/doc/trunk/scripts/gen_doc_activity_email.php Modified: web/doc/trunk/scripts/gen_doc_activity_email.php =================================================================== --- web/doc/trunk/scripts/gen_doc_activity_email.php 2011-05-26 05:12:56 UTC (rev 311430) +++ web/doc/trunk/scripts/gen_doc_activity_email.php 2011-05-26 05:30:18 UTC (rev 311431) @@ -40,7 +40,7 @@ $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 @@ $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

« previous php.doc.web (#1992) next »