mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 18:26:20 +00:00
Small improvement
This commit is contained in:
parent
d6717b2557
commit
ec26e75a55
1 changed files with 4 additions and 4 deletions
|
@ -2177,10 +2177,10 @@ public class Helper {
|
|||
return new SimpleDateFormat(format).format(millis);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
if (withTime)
|
||||
return getDateTimeInstance(context).format(millis);
|
||||
else
|
||||
return getDateInstance(context).format(millis);
|
||||
DateFormat df = (withTime
|
||||
? getDateTimeInstance(context, SimpleDateFormat.SHORT, SimpleDateFormat.SHORT)
|
||||
: getDateInstance(context, SimpleDateFormat.SHORT));
|
||||
return df.format(millis);
|
||||
}
|
||||
} else if (thisYear && thisMonth && thisDay)
|
||||
return getTimeInstance(context, SimpleDateFormat.SHORT).format(millis);
|
||||
|
|
Loading…
Reference in a new issue