diff --git a/panel/chat/message.py b/panel/chat/message.py index 229c6f3a22..bb93b0d8f3 100644 --- a/panel/chat/message.py +++ b/panel/chat/message.py @@ -222,7 +222,7 @@ def __init__(self, object=None, **params): tz = params.get("timestamp_tz") if tz is not None: tz = ZoneInfo(tz) - elif state.browser_info.timezone: + elif state.browser_info and state.browser_info.timezone: tz = ZoneInfo(state.browser_info.timezone) params["timestamp"] = datetime.datetime.now(tz=tz) reaction_icons = params.get("reaction_icons", {"favorite": "heart"})