From 931a8f951a032049eb896002a6546e43d91849b7 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 29 Sep 2016 23:05:27 +0200 Subject: Fix dateformat month bug....... --- modules/changes/changes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/changes/changes.html') 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); } -- cgit v1.2.3-70-g09d2