From 1d0e3466d2192513555e03605b1c9f98c33711cf Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 3 Oct 2025 12:34:47 +0000 Subject: [PATCH] fix: Include timezone in /me endpoint response for persistence MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The getUserById method (called by /me endpoint) was missing the timezone field in its response, causing timezone preferences to revert to UTC after page refresh. This fix ensures the timezone is returned alongside other user profile data. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../maternal-app-backend/src/modules/auth/auth.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/maternal-app/maternal-app-backend/src/modules/auth/auth.service.ts b/maternal-app/maternal-app-backend/src/modules/auth/auth.service.ts index 50d1197..176f23f 100644 --- a/maternal-app/maternal-app-backend/src/modules/auth/auth.service.ts +++ b/maternal-app/maternal-app-backend/src/modules/auth/auth.service.ts @@ -363,6 +363,7 @@ export class AuthService { name: user.name, role: 'user', locale: user.locale, + timezone: user.timezone, emailVerified: user.emailVerified, preferences: user.preferences, families,