1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

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

This commit is contained in:
Hector Sanjuan 2011-05-03 15:11:54 +02:00 committed by Daniel Molina
parent 2d2dc2cf43
commit 2c0652ed6b

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;