fix: use localized date and time

This commit is contained in:
Michel Jonathan Schmitz
2021-02-09 16:59:50 +00:00
committed by Wieland Schöbl
parent 8280917312
commit 6ca0b97637
12 changed files with 17 additions and 47 deletions

View File

@@ -14,9 +14,7 @@
</ion-thumbnail>
</ng-template>
<ion-card-header>
<ion-card-subtitle *ngIf="item.datePublished">{{item.datePublished | amLocale: language | amDateFormat:'Do MMMM YYYY, HH:mm'}}
<span *ngIf="language === 'de'">Uhr</span>
</ion-card-subtitle>
<ion-card-subtitle *ngIf="item.datePublished">{{item.datePublished | amDateFormat:'LLL'}}</ion-card-subtitle>
<ion-card-title>
<span *ngIf="item.url; else titleNoUrl"><a href="{{item.url}}"><span class="text">{{item.name}}</span><span class="icon"><ion-icon name="open-outline"></ion-icon></span></a></span>
<ng-template #titleNoUrl>{{item.name}}</ng-template>