Skip to content

Commit

Permalink
Ajout de la date dans le piede de page de l'article
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaelMobilia committed Nov 28, 2023
1 parent 8d3775c commit 8183d0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/pcinpact/parseur/ParseurHTML.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ public static ArrayList<ArticleItem> getListeArticles(final String unContenu) {
auteur = unArticle.getJSONObject("_embedded").getJSONArray("author").getJSONObject(0).getString("name");
}
contenu += "Par " + auteur + " - actu" + "@" + "nextinpact.com";
// Date de publication
laDate = MyDateUtils.formatDate(Constantes.FORMAT_AFFICHAGE_SECTION_DATE, monArticleItem.getTimeStampPublication());
contenu += " le " + laDate;

// Lien vers l'article
contenu += "<br /><br />Article publié sur <a href=\"" + monArticleItem.getURLseo() + "\">" + monArticleItem.getURLseo() + "</a>";
contenu += "</footer>";
Expand Down

0 comments on commit 8183d0e

Please sign in to comment.