Skip to content

swarm-cli stamp list currently shows the TTL expiration as a date only #705

@chrishobcroft

Description

@chrishobcroft
Stamp ID: 4d2a29e70a3de6994a04584f696b4a6ca137570c76e14414a57ebcbcd2ba5cf7
Label: recovered                                                                                                                                
Usage: 25%      
Capacity (mutable): 76.868 MB remaining out of 102.490 MB                                                                                       
TTL: 23 hours (2026-05-02)

When the TTL is short (hours, or even minutes), the date alone isn't precise enough to act on — there's a big difference between a stamp expiring at 02:00 UTC and one expiring at 22:00 UTC on the same day. The human-readable string ("23 hours") rounds, so

it doesn't fill the gap either.

Proposal: include the time component, in UTC, e.g.:

TTL: 23 hours (2026-05-02 14:37 UTC)

Where: src/service/stamp/index.ts, in the showTtl block — currently toISOString().slice(0, 10) truncates to date-only. Replacing the slice with a fuller YYYY-MM-DD HH:MM UTC format would do it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions