Skip to content

Commit 7294070

Browse files
committed
Make current date prompt test timezone-stable
1 parent e86f537 commit 7294070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/agent-runtime/src/templates/__tests__/strings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('getAgentPrompt', () => {
109109
})
110110

111111
test('formats current date for prompts', () => {
112-
expect(formatCurrentDate(new Date('2026-05-22T12:00:00Z'))).toBe(
112+
expect(formatCurrentDate(new Date(2026, 4, 22, 12))).toBe(
113113
'May 22, 2026',
114114
)
115115
})

0 commit comments

Comments
 (0)