mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix codecy failures
This commit is contained in:
parent
83727e43e6
commit
a2a2589df3
1 changed files with 1 additions and 2 deletions
|
|
@ -399,12 +399,11 @@ public class MediaDetailFragment extends Fragment {
|
|||
|
||||
private String prettyUploadedDate(Media media) {
|
||||
Date date = media.getDateUploaded();
|
||||
if(date.toString() == null || date.toString().isEmpty()) {
|
||||
if (date.toString() == null || date.toString().isEmpty()) {
|
||||
return "Uploaded date not available";
|
||||
}
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy");
|
||||
String formattedDate = formatter.format(date);
|
||||
// Timber.d("Media uploaded date is: s%", formattedDate);
|
||||
return formattedDate;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue