Bug #590: Corrected pretty_time function to show the correct month.

This commit is contained in:
Hector Sanjuan authored and Daniel Molina committed 2011-05-11 17:55:28 +02:00
1 parent 2d2dc2cf43
commit 2c0652ed6b
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ function pretty_time(time_seconds)
var hour = pad(d.getHours(),2);
var mins = pad(d.getMinutes(),2);
var day = pad(d.getDate(),2);
var month = pad(d.getMonth(),2);
var month = pad(d.getMonth()+1,2); //getMonths returns 0-11
var year = d.getFullYear();
return hour + ":" + mins +":" + secs + " " + month + "/" + day + "/" + year;