diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2011-11-03 12:14:28 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2011-11-03 12:14:28 +0000 |
commit | 02894cfb7a2a48bf2d286ac4b0af73a50be69663 (patch) | |
tree | 770f4d4e8e9037021cf2249a0eff2cbd5cfe4e37 | |
parent | e5c83d7f62aa6c82e846fcbb54d4c70a47f2bba2 (diff) | |
download | couchdb-02894cfb7a2a48bf2d286ac4b0af73a50be69663.tar.gz |
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.
-rw-r--r-- | share/www/status.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/status.html b/share/www/status.html index daac42c1c..d77c4cbe9 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) + ":" + |