summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-02-21 16:06:37 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-02-21 16:06:37 +1100
commitef5aa63ea8651f4e6e85bd21927982f220d09228 (patch)
tree5bbf13cde5cfd13e08017ad3ec2b46038bd7eef5 /templates
parent78901785fd4416d7d4d54e9a46e2fd1f958658c3 (diff)
javascript date/month wrong
Diffstat (limited to 'templates')
-rw-r--r--templates/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/main.js b/templates/main.js
index 4285779c..1113617e 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -193,7 +193,7 @@ function init_localtime(){
times[i].textContent =
// date
- zeropad(t.getMonth(), 2) + "/" + zeropad(t.getDate(), 2) + "/" + t.getFullYear().toString().substring(2) +
+ zeropad(t.getMonth() + 1, 2) + "/" + zeropad(t.getDate(), 2) + "/" + t.getFullYear().toString().substring(2) +
" (" + ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"][t.getDay()] + ") " +
// time
zeropad(t.getHours(), 2) + ":" + zeropad(t.getMinutes(), 2) + ":" + zeropad(t.getSeconds(), 2);