From 15b9f0225a920f81fac2b133c20d650459d590fb Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sat, 28 Dec 2024 12:09:36 +0100 Subject: [PATCH] (bug)(profile) timezone not set correctly when area&loc not published --- server/express/profile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/express/profile.ts b/server/express/profile.ts index 42cfce25a..f68ce058a 100644 --- a/server/express/profile.ts +++ b/server/express/profile.ts @@ -765,7 +765,7 @@ router.post('/profile/save', handleErrorAsync(async (req, res) => { }) }; }); const sensitive = profile.sensitive.filter((x) => !!x).map((x) => x.substring(0, 64)); - const timezone = profile.timezone && profile.timezone.tz && profile.timezone.area && profile.timezone.loc + const timezone = profile.timezone && profile.timezone.tz ? { tz: profile.timezone.tz, area: profile.timezone.area,