/dotnet-desktop-development:dotnet-timezonefrom dotnet-desktop-development
Resolves .NET timezone questions with TimeZoneInfo, DateTimeOffset, TimeZoneConverter, and NodaTime. Handles Windows/IANA ID mapping, UTC conversion, DST, scheduling, and location-to-timezone lookup.
Ships in dotnet-desktop-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Resolve timezone IDs, conversions, scheduling, and persistence for .NET applications by selecting the right library, mapping Windows and IANA identifiers, and returning concise C# code that is safe across daylight saving time and platforms.
references/timezone-index.md for common Windows and IANA mappings.references/code-patterns.md for ready-to-use .NET timezone patterns.TimeZoneConverter for cross-platform Windows/IANA compatibility when the target runtime is unclear.NodaTime for recurring schedules, strict timezone arithmetic, and DST-sensitive workflows.| Request type | Recommended path |
|---|---|
| Address or location lookup | Resolve geography to IANA zone, map to Windows ID, then return both IDs and offset/DST notes. |
| Timezone ID lookup | Use references/timezone-index.md; always provide Windows and IANA formats. |
| UTC/local conversion | Use TimeZoneInfo for platform-specific IDs or TimeZoneConverter for cross-platform IDs. |
| Cross-platform compatibility | Use TZConvert.GetTimeZoneInfo(...) from TimeZoneConverter. |
| Scheduling or DST handling | Use NodaTime and explicitly handle ambiguous and invalid local times. |
| API or persistence design | Store instants in UTC and use DateTimeOffset for data transfer; persist a timezone ID when future local scheduling matters. |
For every address, city, region, country, or place name, return this block and then a C# snippet.
Location: <resolved place>
Windows ID: <windows id>
IANA ID: <iana id>
UTC offset: <standard offset and DST offset when relevant>
DST: <yes/no>
If multiple locations are present, include one block per location and a combined multi-timezone snippet. If a location is ambiguous, list possible timezone matches and ask the user to choose.
| Pattern | Use when | Core API |
|---|---|---|
TimeZoneInfo | Windows-only code or known platform-specific ID. | TimeZoneInfo.FindSystemTimeZoneById(), TimeZoneInfo.ConvertTimeFromUtc(...). |
TimeZoneConverter | Cross-platform conversion across Windows, Linux, containers, and Azure. | TZConvert.GetTimeZoneInfo("Asia/Colombo"). |
NodaTime | Recurring schedules, strict arithmetic, DST-sensitive jobs. | DateTimeZone, Instant, ZonedDateTime, resolvers for skipped/repeated local times. |
DateTimeOffset | APIs and data transfer where offset must travel with the value. | DateTimeOffset and UTC normalization. |
| ASP.NET Core persistence/presentation | Store UTC instants and display in user-selected zone. | Database UTC column plus user timezone ID. |
| Recurring jobs and schedulers | Future local time must stay local after DST changes. | Store local schedule + zone ID, compute next occurrence with timezone rules. |
| Ambiguous and invalid DST timestamps | Local time may repeat or not exist. | Validate with TimeZoneInfo.IsAmbiguousTime() and TimeZoneInfo.IsInvalidTime() or NodaTime resolvers. |
using TimeZoneConverter;
TimeZoneInfo tz = TZConvert.GetTimeZoneInfo("Asia/Colombo");
DateTime local = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, tz);
| Pitfall | Corrective rule |
|---|---|
TimeZoneInfo.FindSystemTimeZoneById() is platform-specific | Use Windows IDs on Windows, IANA IDs on Linux/containers, or TimeZoneConverter to bridge both. |
Storing DateTime.Now in databases | Store UTC instants; convert only at boundaries and presentation. |
DateTimeKind.Unspecified leaks into conversions | Treat it as a bug risk unless it deliberately represents user-entered local wall time. |
| DST transitions skip or repeat local times | Validate invalid and ambiguous local timestamps before scheduling or converting. |
| Azure Windows and Azure Linux differ | Use the ID format expected by the host OS or use TimeZoneConverter. |
Keep answers production-safe, code-first, and explicit about third-party package requirements.
## .NET timezone result
**Status:** resolved | ambiguous | blocked
**Recommended approach:** <TimeZoneInfo | TimeZoneConverter | NodaTime | DateTimeOffset>
| Location or scenario | Windows ID | IANA ID | Offset/DST | Notes |
| --- | --- | --- | --- | --- |
| `<place or code path>` | `<windows>` | `<iana>` | `<offsets>` | `<pitfall>` |
<copy-paste-ready C# snippet>
**Package requirement:** `<none | TimeZoneConverter | NodaTime>`
**Warning:** <relevant pitfall>
TimeZoneConverter unless the platform-specific ID requirement is explicit.NodaTime.references/timezone-index.md: common Windows and IANA timezone mappings.references/code-patterns.md: ready-to-use .NET timezone patterns.What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/msstore-cliUse Microsoft Store Developer CLI (msstore) to configure Partner Center credentials, list Store apps, package and publish Windows submissions, check status, manage package flights, gradual rollouts, and CI/CD publishing for Windows App SDK/WinUI, UWP, .NET MAUI, Flutter, Electron, React Native, and PWA apps. Use when asked to configure Store credentials, publish to Microsoft Store, check submission status, or automate Store releases./mvvm-toolkitCommunityToolkit.Mvvm core guidance for ViewModels, source generators, observable properties, commands, validation, and base-class selection. Use this skill when authoring or reviewing code that uses CommunityToolkit.Mvvm 8.x, ObservableObject, ObservableValidator, ObservableRecipient, ObservableProperty, RelayCommand, AsyncRelayCommand, NotifyPropertyChangedFor, NotifyCanExecuteChangedFor, or NotifyDataErrorInfo across WPF, WinUI 3, MAUI, Uno, and Avalonia./mvvm-toolkit-diWire CommunityToolkit.Mvvm ViewModels into Microsoft.Extensions.DependencyInjection for XAML apps. Use this skill when standing up a .NET Generic Host composition root for WPF, WinUI 3, .NET MAUI, Uno, or Avalonia; choosing Singleton, Transient, or Scoped lifetimes; registering IMessenger; resolving ViewModels in Views; using keyed services; adding test seams; or replacing legacy Ioc.Default service-locator code./mvvm-toolkit-messengerConfigure CommunityToolkit.Mvvm Messenger pub/sub for decoupled ViewModel communication. Use this skill when users ask to send messages between ViewModels, choose WeakReferenceMessenger vs StrongReferenceMessenger, use IRecipient<TMessage>, RequestMessage<T>, AsyncRequestMessage<T>, CollectionRequestMessage<T>, ValueChangedMessage<T>, channel tokens, or ObservableRecipient activation in WPF, WinUI 3, .NET MAUI, Uno, or Avalonia./nuget-managerManage NuGet packages safely in .NET projects and solutions using the `dotnet` CLI. Use this skill when adding, removing, or updating package versions, verifying `PACKAGE_NAME` availability, working with `Directory.Packages.props`, or deciding when direct `.csproj` edits are allowed./system-commandline-cliAdd, modify, or review .NET CLI commands built with System.CommandLine by applying project command-base conventions, options and arguments, SetAction handlers, RootCommand registration, global options, dependency injection, validation, naming, and destructive-operation confirmation. Use when the user mentions System.CommandLine, CommandBase, ParseResult, SetAction, RootCommand, subcommands, or asks to add a CLI verb.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin dotnet-desktop-developmentOther plugins' skills for the same job