,
This commit is contained in:
@@ -102,7 +102,7 @@ public class ArticlesAdapter extends ListAdapter<ArticleResult, ArticlesAdapter.
|
||||
Date date = format.parse(articleResult.created_at);
|
||||
if (date == null) throw new Exception();
|
||||
|
||||
SimpleDateFormat pretty_format = new SimpleDateFormat("dd MMM yy, HH:mm a", Locale.getDefault());
|
||||
SimpleDateFormat pretty_format = new SimpleDateFormat("dd MMM yy, hh:mm a", Locale.getDefault());
|
||||
String time = pretty_format.format(date);
|
||||
|
||||
binding.createdAt.setText(time);
|
||||
|
||||
@@ -316,7 +316,7 @@ public class CgDashBoardFragment extends Fragment implements
|
||||
Date date = format.parse(articleResult.created_at);
|
||||
if (date == null) throw new Exception();
|
||||
|
||||
SimpleDateFormat pretty_format = new SimpleDateFormat("dd MMM yy, HH:mm a", Locale.getDefault());
|
||||
SimpleDateFormat pretty_format = new SimpleDateFormat("dd MMM yy, hh:mm a", Locale.getDefault());
|
||||
String time = pretty_format.format(date);
|
||||
|
||||
binding.articleCreatedAt.setText(time);
|
||||
|
||||
Reference in New Issue
Block a user