diff --git a/src/app/post/components/post-card/post-card.component.html b/src/app/post/components/post-card/post-card.component.html index e32709a75774afb37067909c529b351c8344577a..ff06f423aac5debc155bdf5c269e02d9500e6e45 100644 --- a/src/app/post/components/post-card/post-card.component.html +++ b/src/app/post/components/post-card/post-card.component.html @@ -27,7 +27,7 @@ </div> <div fxLayout="column" class="informations"> <div fxLayout="row"> - {{ post.published_at | date: 'shortDate' }} + {{ post.updated_at | date: 'shortDate' }} </div> <div fxLayout="row">par {{ post.author }}</div> </div> diff --git a/src/app/post/components/post-details/post-details.component.html b/src/app/post/components/post-details/post-details.component.html index 32e17b64f9049f2576a847be1c73b7d600265319..3de9a5c0406951f7630379e0f7d627b65dcd584b 100644 --- a/src/app/post/components/post-details/post-details.component.html +++ b/src/app/post/components/post-details/post-details.component.html @@ -24,7 +24,7 @@ <div fxLayout="column" class="informations" *ngIf="post.tags[0] && post.tags[0].slug != 'appels'"> <div fxLayout="row"> - {{ post.published_at | date: 'shortDate' }} + {{ post.updated_at | date: 'shortDate' }} </div> <div fxLayout="row">par {{ post.author }}</div> </div> diff --git a/src/app/post/models/post.model.ts b/src/app/post/models/post.model.ts index eb13ecef2069a06fbd5845c659539a4829c7d1b2..ea6fba08486011bd755747c19ac2828ed9479b2f 100644 --- a/src/app/post/models/post.model.ts +++ b/src/app/post/models/post.model.ts @@ -4,6 +4,7 @@ import { Tag } from './tag.model'; export class Post { id: number; published_at: Date; + updated_at: Date; title: string; excerpt: string; feature_image: string;