-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor TimeZoneConverter to remove NodaTime dependency (#195)
* Refactor TimeZoneConverter to remove NodaTime dependency * Refactor the `TimeZoneConverter` class to eliminate dependencies on the `NodaTime` library, now using `TimeZoneInfo` from NET8.0 framework. * Simplify the constructor to require only an IANA timezone ID and an optional `CultureInfo` object. * Update `ToZonedTime` and `ToUtc` methods for timezone conversions using `TimeZoneInfo`. * Replace `ZonedTime` return value with `IZonedTimeInfo` interface. * Remove `NodaTime` package reference from `Axuno.Tools.csproj`. * Add `GetSystemTimeZoneList`, `GetIanaTimeZoneList`, and `CanMapToIanaTimeZone` methods. * Update `IZonedTimeInfo` interface with additional properties and fully qualified names. * Update test methods to `TimeZoneConverterTests` for handling unknown timezone IDs and default culture usage. * Update `TimeZoneConverterTests` to reflect the refactored `TimeZoneConverter` class. * Bump version to v7.2.1 * Make TimeZoneConverter.ToUtc(DateTime, string) static
- Loading branch information
Showing
17 changed files
with
162 additions
and
245 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
Oops, something went wrong.