-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CultureInfo being overridden by user settings (#2296)
* Fix CultureInfo being overridden by user settings `new CultureInfo(string name)` by default sets `useUserOverride` to true, which uses Windows user customized settings. This results in tests failed on some machines with customized date time format. Use `CultureInfo.GetCultureInfo(string name)` instead which gets the cached instance or create a new instance with `useUserOverride` set to false. * Fix GetCultureInfo breaking Ledger exercise Ledger exercise originally wants a mutable CultureInfo instance to edit its format. `CultureInfo.GetCultureInfo`` instead return a read-only instance. Thus, we just call `new CultureInfo(loc, false)` to not use windows setting.
- Loading branch information
1 parent
7f09e41
commit 505166a
Showing
5 changed files
with
162 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters