- Indexed: {{origin.indexed | amDateFormat:'DD. MMM YYYY'}}
- Modified: {{origin.modified | amDateFormat:'DD. MMM YYYY'}}
+ Indexed: {{origin.indexed | amDateFormat:'ll'}}
+ Modified: {{origin.modified | amDateFormat:'ll'}}
Maintainer: {{origin.maintainer.name}}
diff --git a/src/app/modules/data/elements/origin-in-list.html b/src/app/modules/data/elements/origin-in-list.html
index 5ccfbcd0..4dd7fc10 100644
--- a/src/app/modules/data/elements/origin-in-list.html
+++ b/src/app/modules/data/elements/origin-in-list.html
@@ -1,7 +1,7 @@
-
{{origin.created | amDateFormat:'DD. MMM YY'}}
+
{{origin.created | amDateFormat:'ll'}}
-
{{origin.indexed | amDateFormat:'DD. MMM YY'}}
+
{{origin.indexed | amDateFormat:'ll'}}
diff --git a/src/app/modules/data/types/article/article-detail-content.html b/src/app/modules/data/types/article/article-detail-content.html
index fc4ebe69..b72ee2bd 100644
--- a/src/app/modules/data/types/article/article-detail-content.html
+++ b/src/app/modules/data/types/article/article-detail-content.html
@@ -1,6 +1,6 @@
+ [content]="item.datePublished | amDateFormat:'ll'">
diff --git a/src/app/modules/data/types/date-series/date-series-list-item.html b/src/app/modules/data/types/date-series/date-series-list-item.html
index ff2b67af..2c0bb1d9 100644
--- a/src/app/modules/data/types/date-series/date-series-list-item.html
+++ b/src/app/modules/data/types/date-series/date-series-list-item.html
@@ -6,7 +6,7 @@
{{item.frequency}}, {{item.dates[0] | amDateFormat:'dddd'}}
- ({{item.dates[0] | amDateFormat:'DD. MMM YYYY'}} - {{item.dates[item.dates.length - 1] | amDateFormat:'DD. MMM YYYY'}})
+ ({{item.dates[0] | amDateFormat:'ll'}} - {{item.dates[item.dates.length - 1] | amDateFormat:'ll'}})
{{item.event.categories.join(', ')}}
diff --git a/src/app/modules/data/types/message/message-detail-content.html b/src/app/modules/data/types/message/message-detail-content.html
index a3e670fc..c34b2c49 100644
--- a/src/app/modules/data/types/message/message-detail-content.html
+++ b/src/app/modules/data/types/message/message-detail-content.html
@@ -1,5 +1,5 @@
-
+
diff --git a/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts b/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts
index c4efb7ac..7b2ac9f2 100644
--- a/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts
+++ b/src/app/modules/data/types/place/special/mensa/place-mensa-detail.component.ts
@@ -121,7 +121,7 @@ export class PlaceMensaDetailComponent implements AfterViewInit {
}
}
if (selectedDishes.length) {
- out[startingDay.format('YYYY-MM-DD')] = selectedDishes;
+ out[startingDay.format('L')] = selectedDishes;
}
// tslint:disable-next-line:no-parameter-reassignment
startingDay = nextDay;
diff --git a/src/app/modules/data/types/semester/semester-detail-content.html b/src/app/modules/data/types/semester/semester-detail-content.html
index 0fbef74c..1849ddfc 100644
--- a/src/app/modules/data/types/semester/semester-detail-content.html
+++ b/src/app/modules/data/types/semester/semester-detail-content.html
@@ -1,2 +1,2 @@
-
+
diff --git a/src/app/modules/data/types/semester/semester-list-item.html b/src/app/modules/data/types/semester/semester-list-item.html
index 978d5fb6..9cbf583e 100644
--- a/src/app/modules/data/types/semester/semester-list-item.html
+++ b/src/app/modules/data/types/semester/semester-list-item.html
@@ -4,7 +4,7 @@
{{item.name}}
- {{item.startDate | amDateFormat: 'DD. MMM YYYY'}} - {{item.endDate | amDateFormat:'DD. MMM YYYY'}}
+ {{item.startDate | amDateFormat: 'll'}} - {{item.endDate | amDateFormat:'ll'}}
{{item.type}}
diff --git a/src/app/modules/data/types/video/video-detail-content.html b/src/app/modules/data/types/video/video-detail-content.html
index 638c3995..bf6f172c 100644
--- a/src/app/modules/data/types/video/video-detail-content.html
+++ b/src/app/modules/data/types/video/video-detail-content.html
@@ -2,5 +2,5 @@
+[content]="item.datePublished | amDateFormat:'ll'">
diff --git a/src/app/modules/news/page/news-item.component.ts b/src/app/modules/news/page/news-item.component.ts
index 26087a66..432a6e09 100644
--- a/src/app/modules/news/page/news-item.component.ts
+++ b/src/app/modules/news/page/news-item.component.ts
@@ -13,9 +13,7 @@
* this program. If not, see .
*/
import {Component, Input} from '@angular/core';
-import {LangChangeEvent, TranslateService} from '@ngx-translate/core';
-import {SCLanguageCode, SCMessage} from '@openstapps/core';
-import {Subscription} from 'rxjs';
+import {SCMessage} from '@openstapps/core';
/**
* News page component
*/
@@ -29,31 +27,5 @@ export class NewsItemComponent {
* News (message) to show
*/
@Input() item: SCMessage;
- /**
- * Current language
- */
- language: string;
- /**
- * Current language subscription
- */
- languageSubscription: Subscription;
- constructor(private translateService: TranslateService) {}
-
- /**
- * Remove language subscription on component destruction
- */
- ngOnDestroy() {
- this.languageSubscription?.unsubscribe();
- }
-
- /**
- * Initialize the local variables on component initialization
- */
- ngOnInit() {
- this.language = this.translateService.currentLang as SCLanguageCode;
- this.languageSubscription = this.translateService.onLangChange.subscribe((event: LangChangeEvent) => {
- this.language = event.lang as SCLanguageCode;
- });
- }
}
diff --git a/src/app/modules/news/page/news-item.html b/src/app/modules/news/page/news-item.html
index feb1489d..a26370ce 100644
--- a/src/app/modules/news/page/news-item.html
+++ b/src/app/modules/news/page/news-item.html
@@ -14,9 +14,7 @@
- {{item.datePublished | amLocale: language | amDateFormat:'Do MMMM YYYY, HH:mm'}}
- Uhr
-
+ {{item.datePublished | amDateFormat:'LLL'}}
{{item.name}}
{{item.name}}