This commit is contained in:
14Sandee
2023-12-05 20:59:29 +05:30
parent a45e2aabf4
commit fd7257ee12
3 changed files with 14 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);