Skip to content

Commit c5dd1af

Browse files
acailicclaude
andcommitted
fix: use UTC timezone in formatTime to fix CI test failure
formatTime used toLocaleTimeString without specifying timeZone, causing timestamps to render differently in CI (UTC) vs local dev (UTC+1). Added timeZone: 'UTC' and updated test assertion to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a780b4a commit c5dd1af

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/__tests__/ToolInspector.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('ToolInspector', () => {
4545
render(<ToolInspector event={event} />)
4646

4747
expect(screen.getByText('tool-123')).toBeInTheDocument()
48-
expect(screen.getByText(/11:00:00/)).toBeInTheDocument()
48+
expect(screen.getByText(/10:00:00/)).toBeInTheDocument()
4949
})
5050

5151
it('renders arguments section when arguments exist', () => {

frontend/src/utils/formatting.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export function formatTime(timestamp: string): string {
77
minute: '2-digit',
88
second: '2-digit',
99
hour12: false,
10+
timeZone: 'UTC',
1011
})
1112
}
1213

0 commit comments

Comments
 (0)