You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/11/03 13:21:26 UTC

git commit: Fix active tasks Futon screen date display

Updated Branches:
  refs/heads/master e5c83d7f6 -> 02894cfb7


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/02894cfb
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/02894cfb
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/02894cfb

Branch: refs/heads/master
Commit: 02894cfb7a2a48bf2d286ac4b0af73a50be69663
Parents: e5c83d7
Author: Filipe David Borba Manana <fd...@apache.org>
Authored: Thu Nov 3 12:14:28 2011 +0000
Committer: Filipe David Borba Manana <fd...@apache.org>
Committed: Thu Nov 3 12:14:28 2011 +0000

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/02894cfb/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) + ":" +