From 2c0652ed6b249d7593dcf66ead6c50312afe8abf Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Tue, 3 May 2011 15:11:54 +0200 Subject: [PATCH] Bug #590: Corrected pretty_time function to show the correct month. --- src/sunstone/public/js/sunstone-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/sunstone-util.js b/src/sunstone/public/js/sunstone-util.js index d8216a2ef3..c148295703 100644 --- a/src/sunstone/public/js/sunstone-util.js +++ b/src/sunstone/public/js/sunstone-util.js @@ -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;