community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1769832 - /comdev/reporter.apache.org/trunk/site/js/addrelease.js
Date Tue, 15 Nov 2016 13:45:58 GMT
Author: hboutemy
Date: Tue Nov 15 13:45:57 2016
New Revision: 1769832

URL: http://svn.apache.org/viewvc?rev=1769832&view=rev
Log:
display already registered releases with ISO date

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

Modified: comdev/reporter.apache.org/trunk/site/js/addrelease.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/addrelease.js?rev=1769832&r1=1769831&r2=1769832&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/addrelease.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/addrelease.js Tue Nov 15 13:45:57 2016
@@ -35,11 +35,6 @@
    this.date = date;
  }
 
- // display date as UTC so timezones west of GMT don't display previous date
- function toUTCDate(date) {
-   return date.toUTCString().substring(0, 16)
- }
-
  function listReleaseData(json, a,b) {
   if (done) {
     return;
@@ -65,7 +60,7 @@
     for (idx in recent) {
       rel = recent[idx];
       d = new Date(rel.date*1000)
-      obj.innerHTML += "- " + rel.version + ": " + toUTCDate(d)
+      obj.innerHTML += "- " + rel.version + ": " + d.toISOString().substring(0, 10)
       if (d > now){
         obj.innerHTML += " (<font color='red'>This is in the future?!</font>)"
       }



Mime
View raw message