79327467

Date: 2025-01-03 19:26:54
Score: 2.5
Natty:
Report link

After try a bunch of different approach's, from dozens of sources, I stumble across below solution provided by Tobias J.

"Starting with .NET 6, it is finally possible to work with time zones in a cross-platform manner, so these manual workarounds are no longer needed. There no need anymore for external libraries, with this native solution you can translate from and two any pair of timezones, using either windows or iana timezone id.

The TimeZoneInfo.FindSystemTimeZoneById(string) method automatically accepts either Windows or IANA time zones on either platform and converts them if needed."

Below is the link to the original solution by Tobias. How to translate between Windows and IANA time zones?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Alberico Lima