uploads: Display year in attachments UI upload timestamp.

Modified timerender.js absolute_time() to include the
year in the returned time stamp string.

Fixes #5600.
This commit is contained in:
David Coleman
2017-06-27 21:50:45 -07:00
committed by Tim Abbott
parent 9bb0602ad4
commit 77dc5df56a
2 changed files with 5 additions and 5 deletions

View File

@@ -239,7 +239,7 @@ exports.absolute_time = (function () {
var date = new Date(timestamp);
var H_24 = page_params.twenty_four_hour_time;
return MONTHS[date.getMonth()] + " " + date.getDate() + ", " + fmt_time(date, H_24);
return MONTHS[date.getMonth()] + " " + date.getDate() + ", " + date.getFullYear() + " " + fmt_time(date, H_24);
};
}());