mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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:
committed by
Tim Abbott
parent
9bb0602ad4
commit
77dc5df56a
@@ -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);
|
||||
};
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user