mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 02:28:18 +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);
|
return new SimpleDateFormat(format).format(millis);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
if (withTime)
|
DateFormat df = (withTime
|
||||||
return getDateTimeInstance(context).format(millis);
|
? getDateTimeInstance(context, SimpleDateFormat.SHORT, SimpleDateFormat.SHORT)
|
||||||
else
|
: getDateInstance(context, SimpleDateFormat.SHORT));
|
||||||
return getDateInstance(context).format(millis);
|
return df.format(millis);
|
||||||
}
|
}
|
||||||
} else if (thisYear && thisMonth && thisDay)
|
} else if (thisYear && thisMonth && thisDay)
|
||||||
return getTimeInstance(context, SimpleDateFormat.SHORT).format(millis);
|
return getTimeInstance(context, SimpleDateFormat.SHORT).format(millis);
|
||||||
|
|
Loading…
Add table
Reference in a new issue