drafts: Fix same day's timestamp when language is other than english.

This commit is contained in:
Shubham Dhama
2018-03-12 02:02:14 +05:30
committed by Tim Abbott
parent 7aeae688e7
commit 5a9b1f863f

View File

@@ -212,7 +212,7 @@ exports.setup_page = function (callback) {
var formatted;
var time = new XDate(draft.updatedAt);
var time_stamp = timerender.render_now(time).time_str;
if (time_stamp === "Today") {
if (time_stamp === i18n.t("Today")) {
time_stamp = timerender.stringify_time(time);
}
if (draft.type === "stream") {