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

[email protected] (Philip Olson)
Newsgroups php.doc.web
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.