Skip to content

[Beam] Fix DateTime tests to use InvariantCulture for locale independence#4346

Merged
dbrattli merged 1 commit intomainfrom
fix-beam-datetime-locale-tests
Feb 18, 2026
Merged

[Beam] Fix DateTime tests to use InvariantCulture for locale independence#4346
dbrattli merged 1 commit intomainfrom
fix-beam-datetime-locale-tests

Conversation

@dbrattli
Copy link
Collaborator

Summary

  • Fixed 5 DateTime formatting tests that failed on systems with non-US/UK locales
  • Added CultureInfo.InvariantCulture wrapped in #if !FABLE_COMPILER to ensure consistent behavior across all system locales when running on .NET

The tests were expecting UK-style date/time formats (24-hour, day before month) but would fail on systems with other locale settings (e.g., US or Norwegian locales).

Test plan

  • Verified tests pass locally with ./build.sh test beam
  • All 2020 Beam tests pass

🤖 Generated with Claude Code

…ence

DateTime formatting tests were failing on systems with non-US/UK locales
because they depended on system locale settings. Added explicit
CultureInfo.InvariantCulture to affected tests when running on .NET.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dbrattli dbrattli merged commit fa85ad8 into main Feb 18, 2026
23 checks passed
@dbrattli dbrattli deleted the fix-beam-datetime-locale-tests branch February 18, 2026 06:45
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

Comments