Date Formatting tweaks

This commit is contained in:
itzMiney committed 2024-12-30 16:23:49 +01:00
1 parent dbdfa3bafa
commit c5461e95bb
3 files changed
+12 -10

No files matched your search

@@ -13,8 +13,7 @@
<div class="article-meta">
<p><strong>Author:</strong> {{ article.authorName}}</p>
<p><strong>Views:</strong> {{ article.views }}</p><br>
<p><strong>Created At:</strong> {{ article.createdAt | date:'medium' }}</p>
<p><strong>Last Updated:</strong> {{ article.updatedAt | date:'medium' }}</p>
<p><strong>Created At:</strong> {{ article.createdAt | date:'MMM dd, yyyy, HH:mm' }}</p>
</div>
</div>
</div>
+1 -1
View File
@@ -9,7 +9,7 @@
<div *ngFor="let article of articles" (click)="navigateToArticle(article.slug)" class="article-card">
<h2>{{ (article.title | slice:0:45) + (article.title.length > 40 ? '...' : '')}}</h2>
<p>{{ (article.content | slice:0:80) + (article.content.length > 80 ? '...' : '')}}</p>
<p><small>By {{ article.authorName }} | {{ article.createdAt | date: 'short' }}</small></p>
<p><small>By {{ article.authorName }} | {{ article.createdAt | date: 'dd/MM/yy, HH:mm' }}</small></p>
</div>
</div>
</div>