diff --git a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html
index 0ebe781..a031523 100644
--- a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html
+++ b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html
@@ -27,13 +27,15 @@
- {{getDate()}}
- ,{{getYear()}}
+ {{ photo.metadata.creationDate | date :'longDate'}}
+
+
+ {{ photo.metadata.creationDate | date :'MMMM d'}}
-
{{getDay()}}, {{getTime()}}
+
{{ photo.metadata.creationDate | date :'EEEE'}}, {{getTime()}}
diff --git a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts
index 651eed7..369422f 100644
--- a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts
+++ b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts
@@ -35,27 +35,12 @@ export class InfoPanelLightboxComponent {
return (new Date()).getFullYear();
}
- getYear() {
- const date = new Date(this.photo.metadata.creationDate);
- return date.getFullYear();
- }
-
- getDate() {
- const date = new Date(this.photo.metadata.creationDate);
- const locale = 'en-us';
- return date.toLocaleString(locale, {month: 'long'}) + ' ' + date.getDate();
- }
getTime() {
const date = new Date(this.photo.metadata.creationDate);
return date.toTimeString().split(' ')[0];
}
- getDay() {
- const date = new Date(this.photo.metadata.creationDate);
- const locale = 'en-us';
- return date.toLocaleString(locale, {weekday: 'long'});
- }
toFraction(f) {
if (f > 1) {
diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts
index 028eec1..6c5ef53 100644
--- a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts
+++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts
@@ -94,7 +94,6 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit {
}
ngOnDestroy(): void {
- console.log('destroy');
this.pause();
if (this.subscription.photosChange != null) {
this.subscription.photosChange.unsubscribe();
diff --git a/frontend/app/gallery/map/map.gallery.component.ts b/frontend/app/gallery/map/map.gallery.component.ts
index 08a8af1..c87f748 100644
--- a/frontend/app/gallery/map/map.gallery.component.ts
+++ b/frontend/app/gallery/map/map.gallery.component.ts
@@ -44,7 +44,6 @@ export class GalleryMapComponent implements OnChanges, IRenderable, AfterViewIni
ngAfterViewInit() {
setTimeout(() => {
this.height = this.map.nativeElement.clientHeight;
- console.log(this.height);
}, 0);
}
diff --git a/frontend/app/settings/basic/basic.settings.component.html b/frontend/app/settings/basic/basic.settings.component.html
index ad1402a..a7c6324 100644
--- a/frontend/app/settings/basic/basic.settings.component.html
+++ b/frontend/app/settings/basic/basic.settings.component.html
@@ -17,7 +17,7 @@