community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1760153 - /comdev/reporter.apache.org/trunk/site/addrelease.html
Date Sat, 10 Sep 2016 12:03:35 GMT
Author: sebb
Date: Sat Sep 10 12:03:35 2016
New Revision: 1760153

URL: http://svn.apache.org/viewvc?rev=1760153&view=rev
Log:
Report future dates releases

Modified:
    comdev/reporter.apache.org/trunk/site/addrelease.html

Modified: comdev/reporter.apache.org/trunk/site/addrelease.html
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/addrelease.html?rev=1760153&r1=1760152&r2=1760153&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/addrelease.html (original)
+++ comdev/reporter.apache.org/trunk/site/addrelease.html Sat Sep 10 12:03:35 2016
@@ -99,11 +99,16 @@
       if (x == 0) {
         obj.innerHTML += "No releases registered yet since " + bd.toDateString() 
       } else {
+        var now = new Date()
         recent.sort(function(a,b){return b.date - a.date}); // reverse sort
         for (idx in recent) {
           rel = recent[idx];
           d = new Date(rel.date*1000)
-          obj.innerHTML += "- " + rel.version + ": " + toUTCDate(d) + "<br>"
+          obj.innerHTML += "- " + rel.version + ": " + toUTCDate(d)
+          if (d > now){
+            obj.innerHTML += " (<font color='red'>This is in the future?!</font>)"
+          }
+          obj.innerHTML +="<br>"
         }
       }
       document.getElementById('committee').value = committee;



Mime
View raw message