diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index d8739e8c1d..51201f48cb 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -2522,6 +2522,7 @@ public class FragmentCompose extends FragmentBase { // Build reply header StringBuilder sb = new StringBuilder(); + DateFormat DF = Helper.getDateTimeInstance(context); boolean extended_reply = prefs.getBoolean("extended_reply", false); if (extended_reply) { sb.append("
");
@@ -2538,14 +2539,14 @@ public class FragmentCompose extends FragmentBase {
.append(Html.escapeHtml(MessageHelper.formatAddresses(ref.cc)))
.append("
\n");
sb.append("").append(context.getString(R.string.title_received)).append(" ")
- .append(Html.escapeHtml(new Date(ref.received).toString()))
+ .append(Html.escapeHtml(DF.format(ref.received)))
.append("
\n");
sb.append("").append(context.getString(R.string.title_subject)).append(" ")
.append(Html.escapeHtml(ref.subject == null ? "" : ref.subject));
sb.append("
"); - sb.append(Html.escapeHtml(new Date(ref.received).toString())).append(" "); + sb.append(Html.escapeHtml(DF.format(new Date(ref.received)))).append(" "); sb.append(Html.escapeHtml(MessageHelper.formatAddresses(ref.from))).append(":"); sb.append("
\n"); }