0001-Bug-590-Corrected-pretty_time-function-to-show-the-c.patch
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 |
- |