diff --git a/src/app/components/user-profile/UserRoomProfile.tsx b/src/app/components/user-profile/UserRoomProfile.tsx index 0031943d..feb8047b 100644 --- a/src/app/components/user-profile/UserRoomProfile.tsx +++ b/src/app/components/user-profile/UserRoomProfile.tsx @@ -93,7 +93,7 @@ function UserExtendedSection({ return new Intl.DateTimeFormat([], { hour: 'numeric', minute: '2-digit', - timeZone: profile.timezone, + timeZone: profile.timezone.replace(/^["']|["']$/g, ''), }).format(new Date()); } catch { return null; @@ -144,11 +144,11 @@ function UserExtendedSection({ )} - {localTime && ( + {localTime && profile.timezone && ( - {localTime} ({profile.timezone}) + {localTime} ({profile.timezone.replace(/^["']|["']$/g, '')}) )}