Actually get the day right. Ouch.

This commit is contained in:
Simon MacMullen 2011-05-03 17:38:53 +01:00
parent f9da329b19
commit 19427ffc7e
1 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ function fmt_date(d) {
return i < 10 ? "0" + i : i;
}
return d.getFullYear() + "-" + f(d.getMonth() + 1) + "-" + f(d.getDay()) +
" " + f(d.getHours()) + ":" + f(d.getMinutes()) + ":" +
f(d.getSeconds());
return d.getFullYear() + "-" + f(d.getMonth() + 1) + "-" +
f(d.getDay() + 1) + " " + f(d.getHours()) + ":" + f(d.getMinutes()) +
":" + f(d.getSeconds());
}
function fmt_parameters(obj) {