Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

@jmschonfeld jmschonfeld commented Jul 17, 2025

Date.RelativeFormatStyle uses the current locale and calendar (which uses the default timezone) by default. There are a few unit tests that accidentally used one of these current values, or intentionally used them without guarding via usingCurrentInternationalizationPreferences. This updates dateRelativeFormatConvenience to be guarded with usingCurrentInternationalizationPreferences and explicitly specifies a locale/calendar/timezone in a few other missing places throughout the tests

Resolves rdar://155753882

@jmschonfeld jmschonfeld requested a review from itingliu July 17, 2025 20:57
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit 1d9f578 into swiftlang:release/6.2 Jul 19, 2025
16 checks passed
@jmschonfeld jmschonfeld deleted the swift-testing/relativedateformat-current branch July 19, 2025 00:18
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.

2 participants