You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(opencode): log timestamps use local datetime instead of UTC ISO string #21328
Locale.timestamp() in `packages/opencode/src/util/locale.ts` is used to format log entry timestamps, but the name is misleading — "timestamp" typically implies a numeric Unix timestamp or a UTC ISO string, not a local datetime string.
The function actually returns local time in `YYYY-MM-DDTHH:mm:ss` format using `getFullYear()`, `getHours()`, etc. (local time methods, not UTC). The naming makes it easy to assume the output is UTC, which causes confusion when reading logs.
Proposed fix: rename `Locale.timestamp()` → `Locale.localDatetime()` to make the intent clear and align with the existing `Locale.datetime()` naming convention in the same namespace.
Call sites to update:
`packages/opencode/src/util/log.ts` — log message formatting and log filename generation
No issue template was used. Every issue must use one of: Bug Report, Feature Request, or Question
The title uses a commit message convention (fix(opencode):) rather than an issue title — if this is a feature/change request, it should start with [FEATURE]: and include the required verification checkbox and description
Bug reports require reproduction steps and context; feature requests require a clear explanation of the problem or need — the current description reads more like a PR description than an issue
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
If you believe this was flagged incorrectly, please let a maintainer know.
changed the title [-]fix(opencode): log timestamps use ISO format instead of local datetime[/-][+]fix(opencode): log timestamps use local datetime instead of UTC ISO string[/+]on Apr 7, 2026
Thanks for updating the issue! Unfortunately, it still doesn't fully meet our contributing guidelines.
What still needs to be fixed:
No issue template used. Every issue must use one of: Bug Report, Feature Request, or Question. Please edit your issue to follow the structure of the appropriate template.
Title format. The title still uses a commit message convention (fix(opencode):). If this is a feature/change request, the title must start with [FEATURE]:. If it's a bug report, please use a plain descriptive title.
Template requirements:
If Bug Report: include a proper Description field and reproduction steps/context.
If Feature Request: title must start with [FEATURE]:, include the verification checkbox, and explain the problem or need.
Please edit the issue to use one of the required templates and update the title accordingly.
Activity
github-actions commentedon Apr 7, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
fix(opencode):) rather than an issue title — if this is a feature/change request, it should start with[FEATURE]:and include the required verification checkbox and descriptionPlease edit this issue to address the above within 2 hours, or it will be automatically closed.
If you believe this was flagged incorrectly, please let a maintainer know.
[-]fix(opencode): log timestamps use ISO format instead of local datetime[/-][+]fix(opencode): log timestamps use local datetime instead of UTC ISO string[/+]github-actions commentedon Apr 7, 2026
Thanks for updating the issue! Unfortunately, it still doesn't fully meet our contributing guidelines.
What still needs to be fixed:
fix(opencode):). If this is a feature/change request, the title must start with[FEATURE]:. If it's a bug report, please use a plain descriptive title.[FEATURE]:, include the verification checkbox, and explain the problem or need.Please edit the issue to use one of the required templates and update the title accordingly.
elonnzhang commentedon Apr 7, 2026
Closing — will resubmit with correct format.