From 40ed6f118a03234d00bde3be7a6e95e75118d23e Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 7 May 2020 11:07:08 +0200 Subject: [PATCH] Frontend: Fix displayed date for photos without time zone Signed-off-by: Michael Mayer --- frontend/src/model/photo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/model/photo.js b/frontend/src/model/photo.js index e0b891798..ae6001064 100644 --- a/frontend/src/model/photo.js +++ b/frontend/src/model/photo.js @@ -203,7 +203,7 @@ class Photo extends RestModel { if (this.TimeZone) { return DateTime.fromISO(this.TakenAt).setZone(this.TimeZone).toLocaleString(DateTime.DATETIME_FULL); } else if (this.TakenAt) { - return DateTime.fromISO(this.TakenAt).toLocaleString(DateTime.DATE_HUGE); + return DateTime.fromISO(this.TakenAt).setZone("UTC").toLocaleString(DateTime.DATE_HUGE); } else { return "Unknown"; }