Short date format

This commit is contained in:
M66B 2024-02-25 20:07:16 +01:00
parent 05725ade65
commit 64ec995c71
1 changed files with 1 additions and 1 deletions

View File

@ -2274,7 +2274,7 @@ public class Helper {
try {
if (condensed && thisYear && thisMonth && thisDay)
return getTimeInstance(context, SimpleDateFormat.SHORT).format(millis);
String skeleton = (thisYear ? "MMM-d" : "yyyy-M-d");
String skeleton = (thisYear ? "M-d" : "yyyy-M-d");
if (withTime) {
boolean is24Hour = android.text.format.DateFormat.is24HourFormat(context);
skeleton += (is24Hour ? " Hm" : " hm");