couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject git commit: Fix active tasks Futon screen date display
Date Thu, 03 Nov 2011 12:22:13 GMT
Updated Branches:
  refs/heads/1.2.x d6269d3fa -> 2a821005a


Fix active tasks Futon screen date display

Date months were incorrect, JavaScript's Date class
getMonth() method returns an integer in the range 0..11.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/2a821005
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/2a821005
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/2a821005

Branch: refs/heads/1.2.x
Commit: 2a821005a4e3e77d3a2636b19804919ebf0348a6
Parents: d6269d3
Author: Filipe David Borba Manana <fdmanana@apache.org>
Authored: Thu Nov 3 12:14:28 2011 +0000
Committer: Filipe David Borba Manana <fdmanana@apache.org>
Committed: Thu Nov 3 12:20:47 2011 +0000

----------------------------------------------------------------------
 share/www/status.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2a821005/share/www/status.html
----------------------------------------------------------------------
diff --git a/share/www/status.html b/share/www/status.html
index daac42c..d77c4cb 100644
--- a/share/www/status.html
+++ b/share/www/status.html
@@ -56,7 +56,7 @@ specific language governing permissions and limitations under the License.
     function toTaskDate(timestamp) {
       var d = new Date(timestamp * 1000);
       var hours = d.getHours(), min = d.getMinutes(), secs = d.getSeconds();
-      var year = d.getFullYear(), month = d.getMonth(), day = d.getDate();
+      var year = d.getFullYear(), month = d.getMonth() + 1, day = d.getDate();
 
       return String(year) + "-" + (month < 10 ? "0" + month : month) + "-" +
         day + " " + (hours < 10 ? "0" + hours : hours) + ":" +


Mime
View raw message