You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/05 05:57:06 UTC

svn commit: r1864412 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js

Author: humbedooh
Date: Mon Aug  5 05:57:06 2019
New Revision: 1864412

URL: http://svn.apache.org/viewvc?rev=1864412&view=rev
Log:
compare dates, not timestamps

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864412&r1=1864411&r2=1864412&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Mon Aug  5 05:57:06 2019
@@ -69,7 +69,7 @@ function generate_pmc_roster(pdata) {
         if (!last_added || last_added[1] < change[1])  {
             last_added = change;
         }
-        if (added.isAfter(three_months_ago) && added != founded) {
+        if (added.isAfter(three_months_ago) && added.format('YYYY-MM-DD') != founded.format('YYYY-MM-DD')) {
             no_added++;
             txt += "- %s was added to the PMC on %s\n".format(name, added.format('YYYY-MM-DD'));
         }

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864412&r1=1864411&r2=1864412&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Mon Aug  5 05:57:06 2019
@@ -1248,7 +1248,7 @@ function generate_pmc_roster(pdata) {
         if (!last_added || last_added[1] < change[1])  {
             last_added = change;
         }
-        if (added.isAfter(three_months_ago) && added != founded) {
+        if (added.isAfter(three_months_ago) && added.format('YYYY-MM-DD') != founded.format('YYYY-MM-DD')) {
             no_added++;
             txt += "- %s was added to the PMC on %s\n".format(name, added.format('YYYY-MM-DD'));
         }