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
Session timestamps display in UTC instead of local time #9025
The issue is in the OpenCode source code using new Date().toISOString(), which always returns UTC time and is not affected by the TZ environment variable.
Suggested Fix
When generating session titles, use local time format instead of ISO format, or:
Use toLocaleString() method
Use moment.js or date-fns for timezone-aware time formatting
Add a configuration option for users to choose time display format
Additional Info
System timezone is correct: CST (China Standard Time)
System date command shows correct time
Node.js can display local time when properly configured, but OpenCode doesn't use localized time
Impact
All users in non-UTC timezones see incorrect timestamps, affecting user experience.
Reacted by Phoenix@Meridian, Dat Hoang, Benstin231 and Lasse Stilvang
Activity
github-actions commentedon Jan 17, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.