[PR #1888] [CLOSED] Add configurable time format support #10101

Closed
opened 2026-02-16 18:14:42 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1888
Author: @mattrobenolt
Created: 8/13/2025
Status: Closed

Base: devHead: feature/configurable-time-format


📝 Commits (2)

  • 6494c40 Add configurable time format support
  • 5554687 Use lazy evaluation for time format detection

📊 Changes

6 files changed (+74 additions, -17 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+7 -0)
📝 packages/sdk/go/config.go (+3 -0)
📝 packages/sdk/js/src/gen/types.gen.ts (+4 -0)
📝 packages/sdk/stainless/generate.ts (+1 -1)
📝 packages/tui/internal/app/state.go (+14 -13)
📝 packages/tui/internal/components/chat/message.go (+45 -3)

📄 Description

  • Add time_format config option: 'detect', '12h', '24h'
  • Auto-detects system preference on macOS, defaults to 12h elsewhere
  • Updates TUI to display timestamps in user's preferred format

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1888 **Author:** [@mattrobenolt](https://github.com/mattrobenolt) **Created:** 8/13/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/configurable-time-format` --- ### 📝 Commits (2) - [`6494c40`](https://github.com/anomalyco/opencode/commit/6494c406b0963315eecd1bd4f2541ede5cba35bd) Add configurable time format support - [`5554687`](https://github.com/anomalyco/opencode/commit/55546878f94fc7d09a8241e653da2e6e8992b5e4) Use lazy evaluation for time format detection ### 📊 Changes **6 files changed** (+74 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+7 -0) 📝 `packages/sdk/go/config.go` (+3 -0) 📝 `packages/sdk/js/src/gen/types.gen.ts` (+4 -0) 📝 `packages/sdk/stainless/generate.ts` (+1 -1) 📝 `packages/tui/internal/app/state.go` (+14 -13) 📝 `packages/tui/internal/components/chat/message.go` (+45 -3) </details> ### 📄 Description - Add time_format config option: 'detect', '12h', '24h' - Auto-detects system preference on macOS, defaults to 12h elsewhere - Updates TUI to display timestamps in user's preferred format --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:42 -05:00
yindo closed this issue 2026-02-16 18:14:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10101