Records Feature record

FDR-030

Inline Message Timestamps

Active Last reviewed 2026-10-15 Source file

Overview

Users can insert an absolute timestamp into a message so every reader sees the same instant formatted for their own locale, timezone, and 12/24-hour preference. This is for lightweight coordination in chat, not for scheduling events or reminders.

Behavior

  • The bundled composer includes a timestamp picker with a date/time field and IANA timezone field.
  • Each time the picker opens, it shows the current browser time in the user's preferred timezone, or the browser timezone if no preference is set.
  • Inserting a timestamp writes a stable text token into the message body: <t:UNIX_SECONDS:F>.
  • Rendered messages replace valid timestamp tokens with localized date-time text using the viewer's display preferences.
  • Rendered timestamps include a small clock icon and are clickable. Clicking opens a compact details popover showing local time and a live-updating relative time.
  • Invalid timestamp tokens stay visible as literal message text.
  • Timestamp tokens inside inline code, code blocks, and blockquotes stay literal.
  • Editing a message exposes and preserves the raw timestamp token.
  • Older clients that do not understand timestamp tokens show the raw token.

Design Decisions

1. Timestamp tokens are body text

Decision: Inline timestamps are stored as message-body text instead of new protobuf fields or structured message spans. Why: Message bodies are already mutable, encrypted content. A text token is compatible with old clients and does not change persisted EVT payloads or public ConnectRPC message shapes. Tradeoff: Integrations that want native timestamp rendering must understand the token syntax themselves.

2. V1 supports one exact format

Decision: V1 supports <t:UNIX_SECONDS:F> only, rendered as an exact localized date and time. Why: The immediate use case is removing manual timezone conversions from announcements. Exact date-time rendering avoids ambiguity in old threads. Tradeoff: Compact and relative timestamp styles can be added later, but are not part of the first supported syntax.

Permissions

No dedicated permission. Anyone who can post or edit a message can include a timestamp token in that message body.

Records that name this record

Esc