summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-09-29 23:05:27 +0200
committertomsmeding <tom.smeding@gmail.com>2016-09-29 23:05:27 +0200
commit931a8f951a032049eb896002a6546e43d91849b7 (patch)
tree956b5c173bfc8eb701dcaaf37a5bc424072184e3
parent2cf9f0bd7018a536061ea277df3158bc846fe241 (diff)
Fix dateformat month bug.......
-rw-r--r--modules/changes/changes.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/changes/changes.html b/modules/changes/changes.html
index 5dbcc6d..07cc7f9 100644
--- a/modules/changes/changes.html
+++ b/modules/changes/changes.html
@@ -18,7 +18,7 @@ function pad(s,n,c){
}
function dateformat(date){
- return date.getFullYear()+"/"+pad(date.getMonth(),2)+"/"+pad(date.getDate(),2)+" "+
+ return date.getFullYear()+"/"+pad(date.getMonth()+1,2)+"/"+pad(date.getDate(),2)+" "+
pad(date.getHours(),2)+":"+pad(date.getMinutes(),2)+":"+pad(date.getSeconds(),2);
}