Use medium date/time for extended reply header

pull/194/merge
M66B 3 years ago
parent ab33147a11
commit ba1d4cf230

@ -427,9 +427,10 @@ public class EntityMessage implements Serializable {
boolean language_detection = prefs.getBoolean("language_detection", false); boolean language_detection = prefs.getBoolean("language_detection", false);
String l = (language_detection ? language : null); String l = (language_detection ? language : null);
DateFormat DTF = Helper.getDateTimeInstance(context);
Element p = document.createElement("p"); Element p = document.createElement("p");
if (extended) { if (extended) {
DateFormat DTF = Helper.getDateTimeInstance(context, SimpleDateFormat.LONG, SimpleDateFormat.LONG);
if (from != null && from.length > 0) { if (from != null && from.length > 0) {
Element strong = document.createElement("strong"); Element strong = document.createElement("strong");
strong.text(Helper.getString(context, l, R.string.title_from) + " "); strong.text(Helper.getString(context, l, R.string.title_from) + " ");
@ -465,10 +466,8 @@ public class EntityMessage implements Serializable {
p.appendText(subject); p.appendText(subject);
p.appendElement("br"); p.appendElement("br");
} }
} else { } else
DateFormat DTF = Helper.getDateTimeInstance(context);
p.text(DTF.format(new Date(received)) + " " + MessageHelper.formatAddresses(from) + ":"); p.text(DTF.format(new Date(received)) + " " + MessageHelper.formatAddresses(from) + ":");
}
Element div = document.createElement("div") Element div = document.createElement("div")
.attr("fairemail", "reply"); .attr("fairemail", "reply");

Loading…
Cancel
Save