From dfd200df0fac84adbfed68f269e3bfe9b1960f04 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 19 Sep 2022 11:33:04 +0200 Subject: [PATCH] ISO compliant week notation --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 5cf4116347..357e818330 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1026,7 +1026,7 @@ public class FragmentMessages extends FragmentBase StringBuilder sb = new StringBuilder(); Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); - sb.append(cal.get(Calendar.YEAR)).append('-').append(cal.get(Calendar.WEEK_OF_YEAR)); + sb.append(cal.get(Calendar.YEAR)).append("-W").append(cal.get(Calendar.WEEK_OF_YEAR)); cal.set(Calendar.DAY_OF_WEEK, 1); sb.append(' ').append(Helper.getDateInstance(context).format(cal.getTimeInMillis())); return sb.toString();