0001-Bug-590-Corrected-pretty_time-function-to-show-the-c.patch

Hector Sanjuan, 05/03/2011 01:10 PM

Download (964 Bytes)

View differences:

src/sunstone/public/js/sunstone-util.js
40 40
    var hour = pad(d.getHours(),2);
41 41
    var mins = pad(d.getMinutes(),2);
42 42
    var day = pad(d.getDate(),2);
43
    var month = pad(d.getMonth(),2);
43
    var month = pad(d.getMonth()+1,2); //getMonths returns 0-11
44 44
    var year = d.getFullYear();
45 45

  
46 46
    return hour + ":" + mins +":" + secs + " " + month + "/" + day + "/" + year;
47
-