Skip to content

[FEATURE]: Default session title should use local time instead of UTC (Z) #22781

@LawlietLi

Description

@LawlietLi

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When a new session is created, the default title is formatted as:

New session - 2026-04-15T03:20:00.000Z

The Z suffix means this timestamp is in UTC (GMT+0). However, the "last modified" time shown in the session list uses local time. This inconsistency is confusing — the title makes it look like the session was created hours ago (or in the future) depending on your timezone.

Suggestion: Use local time instead of UTC in the default session title, e.g.:

New session - 2026-04-15T11:20:00

The fix would be in packages/opencode/src/session/session.ts, replacing new Date().toISOString() with a local time formatter. Happy to submit a PR if this direction sounds good.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions