You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gmail): render quoted and forwarded dates in Gmail's human style
Reply and forward attributions emitted the original message's raw RFC 2822
Date header verbatim, e.g. "On Wed, 17 Jun 2026 00:29:51 -0500, ... wrote:"
and "Date: Wed, 17 Jun 2026 00:29:51 -0500". Reformat it to the
human-readable style Gmail uses ("Wed, Jun 17, 2026 at 12:29 AM") across
all four render paths: reply plain, reply HTML, forward plain, forward HTML.
Like Gmail, the timestamp is converted into the user's timezone rather than
left in the sender's offset. The location is resolved via the existing
mailDateLocation helper, so it honors GOG_TIMEZONE / default_timezone and
falls back to the local timezone -- the same resolution already used for the
outgoing Date header. An unparseable Date is left as-is (trimmed) so it
never breaks the quote or forward block.
The new formatQuoteDate and the existing formatGmailDateInLocation now share
a formatMailDateInLocation core (they differed only in the output layout).
Includes unit coverage for formatQuoteDate and the HTML reply/forward
attribution paths; existing reply/forward/draft tests updated to the new
format.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
0 commit comments