community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1689699 - /comdev/reporter.apache.org/branches/deployed/site/addrelease.html
Date Tue, 07 Jul 2015 15:23:45 GMT
Author: sebb
Date: Tue Jul  7 15:23:44 2015
New Revision: 1689699

URL: http://svn.apache.org/r1689699
Log:
Create the basedate once

Modified:
    comdev/reporter.apache.org/branches/deployed/site/addrelease.html

Modified: comdev/reporter.apache.org/branches/deployed/site/addrelease.html
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/deployed/site/addrelease.html?rev=1689699&r1=1689698&r2=1689699&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/deployed/site/addrelease.html (original)
+++ comdev/reporter.apache.org/branches/deployed/site/addrelease.html Tue Jul  7 15:23:44
2015
@@ -71,9 +71,9 @@
       var obj = document.getElementById('contents')
       var x = 0;
       obj.innerHTML += "<h3>Already registered releases:</h3>"
-      var basedate = new Date(baseyear,1,1)
+      var basedate = (new Date(baseyear,1,1)).getTime()/1000 // value as stored in the database
       for (version in json) {
-        if (new Date(json[version]*1000) > basedate) {
+        if (json[version] > basedate) {
           obj.innerHTML += "- " + version + ": " + new Date(json[version]*1000).toDateString()
+ "<br>"
           x++;
         }



Mime
View raw message