openclaw - 💡(How to fix) Fix Inbound metadata timestamp should include seconds [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

While debugging a ~2min message delivery delay from Cove → OpenClaw, the metadata timestamp only showed 18:32 while gateway logs showed receipt at 18:32:58. The lack of seconds precision made it impossible to determine from metadata alone whether the delay was on the sending platform side or the gateway side.

Root Cause

formatEnvelopeTimestamp() in envelope-*.js calls formatZonedTimestamp() / formatUtcTimestamp() from format-datetime-*.js without setting displaySeconds: true.

The functions already support a displaySeconds option — it just is not enabled for inbound metadata timestamps.

Fix Action

Fixed

Code Example

"timestamp": "Wed 2026-05-27 18:32 GMT+8"

---

"timestamp": "Wed 2026-05-27 18:32:58 GMT+8"
RAW_BUFFERClick to expand / collapse

Problem

The timestamp field in the conversation info metadata block (shown to agents as "untrusted metadata") only includes hours and minutes, not seconds:

"timestamp": "Wed 2026-05-27 18:32 GMT+8"

This makes it difficult to diagnose message delivery delays, since we can only tell the minute a message was sent, not the exact second.

Root Cause

formatEnvelopeTimestamp() in envelope-*.js calls formatZonedTimestamp() / formatUtcTimestamp() from format-datetime-*.js without setting displaySeconds: true.

The functions already support a displaySeconds option — it just is not enabled for inbound metadata timestamps.

Expected Behavior

The metadata timestamp should include seconds:

"timestamp": "Wed 2026-05-27 18:32:58 GMT+8"

Suggested Fix

Pass { displaySeconds: true } when calling formatZonedTimestamp / formatUtcTimestamp inside formatEnvelopeTimestamp() for inbound conversation metadata.

The underlying format functions already handle this:

  • Zoned: 2024-01-15 14:30:05 EST
  • UTC: 2024-01-15T14:30:05Z

Context

While debugging a ~2min message delivery delay from Cove → OpenClaw, the metadata timestamp only showed 18:32 while gateway logs showed receipt at 18:32:58. The lack of seconds precision made it impossible to determine from metadata alone whether the delay was on the sending platform side or the gateway side.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Inbound metadata timestamp should include seconds [1 pull requests]