ISO compliant week notation

This commit is contained in:
M66B 2022-09-19 11:33:04 +02:00
parent cfdb7eeb7c
commit dfd200df0f
1 changed files with 1 additions and 1 deletions

View File

@ -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();