New rule S6575: Use TimeZoneInfo.FindSystemTimeZoneById
instead of TimezoneConverter
#7077
Closed
2 tasks
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: New Rule
Implementation for a rule that HAS been specified.
Milestone
Implement new rule S6575: Use TimeZoneInfo.FindSystemTimeZoneById instead of TimezoneConverter.
This rule should raise when the project targets .net6 and TimeZoneConverter methods for IANA and Windows Timezones are used.
TimeZoneConverter
also covers Rails Timezones - we should not raise there asTimeZoneInfo.FindSystemTimeZoneById
does not cover rails.Hint: This rule concerns projects that target only .NET 6 and above. Here's how we currently detect framework versions.
The text was updated successfully, but these errors were encountered: