Skip to content

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

Closed as not planned

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.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Apr 16, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Apr 16, 2026
  3. changed the title [-]Default session title uses UTC timestamp instead of local time[/-] [+][FEATURE]: Default session title uses UTC timestamp instead of local time[/+] on Apr 16, 2026
  4. github-actions commented on Apr 16, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now follows the contributing guidelines. We appreciate you taking the time to fix it.

  5. changed the title [-][FEATURE]: Default session title uses UTC timestamp instead of local time[/-] [+][FEATURE]: Default session title should use local time instead of UTC (Z)[/+] on Apr 16, 2026
  6. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  7. v4ever1luv commented on Jun 2, 2026

    @v4ever1luv

    PR #30350 has been submitted which addresses this feature request by replacing toISOString() with local-time formatting in session.ts.

  8. ultrangson commented on Jul 25, 2026

    @ultrangson

    This issue has been posted and open for quite a while and has caused significant inconvenience for users in non-UTC timezones. The fix is straightforward and well-defined. Hope the technical experts can prioritize and address it soon. Thanks!

  9. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions