Skip to content

fix(tests): use local-time timestamps in day-aggregator test#160

Closed
gcacace wants to merge 1 commit intogetagentseal:mainfrom
gcacace:fix/day-aggregator-timezone-test
Closed

fix(tests): use local-time timestamps in day-aggregator test#160
gcacace wants to merge 1 commit intogetagentseal:mainfrom
gcacace:fix/day-aggregator-timezone-test

Conversation

@gcacace
Copy link
Copy Markdown

@gcacace gcacace commented Apr 27, 2026

The test used 2026-04-09T23:59:00Z (UTC) which falls on April 10th in timezones ahead of UTC, causing dateKey() to return the wrong date.

Drop the Z suffix so timestamps are parsed as local time, matching dateKey() which uses getDate() (local). The original midnight-boundary scenario is preserved.

The test used 2026-04-09T23:59:00Z (UTC) which falls on April 10th
in timezones ahead of UTC, causing dateKey() to return the wrong date.

Drop the Z suffix so timestamps are parsed as local time, matching
dateKey() which uses getDate() (local). The original midnight-boundary
scenario is preserved.
@gcacace
Copy link
Copy Markdown
Author

gcacace commented Apr 27, 2026

Closing as duplicate of #112.

@gcacace gcacace closed this Apr 27, 2026
@gcacace gcacace deleted the fix/day-aggregator-timezone-test branch April 27, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant