Timestamp seems to be in seconds, but is being used as milliseconds #525

Closed
opened 2026-02-16 17:27:10 -05:00 by yindo · 2 comments
Owner

Originally created by @MananGandhi1810 on GitHub (Jul 6, 2025).

Originally assigned to: @adamdotdevin on GitHub.

When displaying timestamps in the TUI, it appears that the system is currently interpreting the provided timestamp (e.g., 12:06 PM) as milliseconds since epoch, when it is actually represented as seconds since epoch. This discrepancy leads to an incorrect time being displayed in the user interface.

To correct this, the system should be adjusted to correctly interpret the timestamp as seconds since epoch before converting and displaying it.

Example:
Image

Originally created by @MananGandhi1810 on GitHub (Jul 6, 2025). Originally assigned to: @adamdotdevin on GitHub. When displaying timestamps in the TUI, it appears that the system is currently interpreting the provided timestamp (e.g., 12:06 PM) as milliseconds since epoch, when it is actually represented as seconds since epoch. This discrepancy leads to an incorrect time being displayed in the user interface. To correct this, the system should be adjusted to correctly interpret the timestamp as seconds since epoch before converting and displaying it. Example: <img width="564" height="64" alt="Image" src="https://github.com/user-attachments/assets/a7f37f38-ea35-4d70-b1aa-45ff39f4cbed" />
yindo closed this issue 2026-02-16 17:27:10 -05:00
Author
Owner

@MananGandhi1810 commented on GitHub (Jul 6, 2025):

The following line seems to be the reason for the bug:
https://github.com/sst/opencode/blob/f4c453155d5a459bd49a39bf0acb7cd709f0a4dc/packages/tui/internal/components/chat/message.go#L231

@MananGandhi1810 commented on GitHub (Jul 6, 2025): The following line seems to be the reason for the bug: https://github.com/sst/opencode/blob/f4c453155d5a459bd49a39bf0acb7cd709f0a4dc/packages/tui/internal/components/chat/message.go#L231
Author
Owner

@rekram1-node commented on GitHub (Sep 25, 2025):

believe this is fixed

@rekram1-node commented on GitHub (Sep 25, 2025): believe this is fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#525