Skip to content

Make TestDomainsSuspendedNotification pass in any timezone - #58

Merged
ademar merged 1 commit into
masterfrom
test/tz-independent
Sep 24, 2026
Merged

ademar merged 1 commit into
masterfrom
test/tz-independent

Conversation

@ademar

@ademar ademar commented Sep 24, 2026

Copy link
Copy Markdown
Member

Summary

  • The test data's cancelDate is UTC (2009-12-12T00:00:13Z). DateTime.TryParse converts it to the machine's local time, so asserting a fixed local DateTime only passed where the machine clock is set to UTC (CI, for example) and failed elsewhere.
  • The test now compares the parsed value as UTC. Library behavior is unchanged.

Testing

Unit tests pass (55 passed, 23 skipped) with TZ set to America/New_York, UTC, Asia/Tokyo, Pacific/Kiritimati and America/Los_Angeles.

🤖 Generated with Claude Code

The cancelDate in the test data is UTC (2009-12-12T00:00:13Z) and
DateTime.TryParse converts it to local time, so asserting a fixed
local DateTime only passed on machines set to UTC. Compare the
parsed value as UTC instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ademar
ademar merged commit 3132fb3 into master Sep 24, 2026
2 checks passed
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