dotnet-timezone

Identify and address .NET timezone challenges in cross-platform apps.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/afonsoft/VideoChat --skill dotnet-timezone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-timezone
Source: https://github.com/afonsoft/VideoChat/tree/main/.agents/skills/dotnet-timezone
Command: npx skills add https://github.com/afonsoft/VideoChat --skill dotnet-timezone

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

.NET timezone handling and cross-platform DST edge cases are a common source of bugs; this Skill provides clear guidance, best practices, and ready-to-use C# snippets for reliable TimeZoneInfo, DateTimeOffset, and NodaTime usage across Windows and IANA time zones.

Core Features & Use Cases

  • Cross-platform Windows/IANA timezone mappings and conversions.
  • Recommendations for TimeZoneConverter, TimeZoneInfo, and NodaTime with practical examples.
  • Copy-paste-ready snippets for common tasks like UTC-to-local conversions, ambiguous DST handling, and formatting timestamps for logs.

Quick Start

Ask for a ready-to-run snippet that converts UTC to a target IANA timezone using TimeZoneConverter.

Frequently Asked Questions about dotnet-timezone

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert UTC to a specific IANA timezone in .NET?

To convert UTC to a target IANA timezone in .NET, you can use the TimeZoneConverter library alongside TimeZoneInfo to map IANA IDs and apply the correct offset. This Skill provides copy-paste-ready C# snippets for this exact cross-platform conversion.

What is the best way to handle daylight saving time edge cases in C#?

The best way to handle daylight saving time edge cases in C# is using DateTimeOffset and NodaTime to manage ambiguous time periods. This Skill provides guidance and snippets for reliable DST handling across Windows and IANA time zones.

Does TimeZoneInfo work with IANA timezone IDs on cross-platform .NET apps?

TimeZoneInfo supports cross-platform timezone conversions, but mapping Windows IDs to IANA IDs requires TimeZoneConverter. This Skill offers guidance and practical examples for handling these mappings reliably in .NET.

Why do my datetime timezone conversions return incorrect offsets on Linux?

Incorrect timezone conversion offsets on Linux often stem from Windows-centric timezone IDs not mapping to IANA IDs. This Skill provides cross-platform .NET guidance and snippets using TimeZoneConverter and NodaTime to resolve these mismatches.

Should I use NodaTime or TimeZoneInfo for .NET timezone handling?

Choosing between NodaTime and TimeZoneInfo depends on your need for advanced DST rules versus built-in simplicity. This Skill compares both approaches and offers best-practice guidance for cross-platform .NET timezone management.