{"id":22656544,"url":"https://github.com/dahln/timezoner","last_synced_at":"2026-03-10T06:02:44.942Z","repository":{"id":161813726,"uuid":"153475522","full_name":"dahln/Timezoner","owner":"dahln","description":"A simple library to provide a list of time zones, providing an Id, Name, and Offset","archived":false,"fork":false,"pushed_at":"2025-11-15T22:15:05.000Z","size":227,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-24T18:52:43.533Z","etag":null,"topics":["netstandard20","time","timezone","timezones","zone","zones"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Timezoner/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dahln.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-17T14:55:59.000Z","updated_at":"2025-11-15T22:15:09.000Z","dependencies_parsed_at":"2025-04-19T12:22:59.438Z","dependency_job_id":"7b607438-2cbe-4f89-8dfc-485a998b589d","html_url":"https://github.com/dahln/Timezoner","commit_stats":null,"previous_names":["dahln/timezoner"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dahln/Timezoner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahln%2FTimezoner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahln%2FTimezoner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahln%2FTimezoner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahln%2FTimezoner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dahln","download_url":"https://codeload.github.com/dahln/Timezoner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahln%2FTimezoner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netstandard20","time","timezone","timezones","zone","zones"],"created_at":"2024-12-09T10:15:03.959Z","updated_at":"2026-03-10T06:02:44.934Z","avatar_url":"https://github.com/dahln.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿[![.NET CI/CD Nuget](https://github.com/dahln/Timezoner/actions/workflows/dotnet-nuget.yml/badge.svg)](https://github.com/dahln/Timezoner/actions/workflows/dotnet-nuget.yml)\n[![Azure Static Web Apps CI/CD](https://github.com/dahln/Timezoner/actions/workflows/azure-static-web-apps-zealous-island-09cfe4010.yml/badge.svg)](https://github.com/dahln/Timezoner/actions/workflows/azure-static-web-apps-zealous-island-09cfe4010.yml)\n\n# Timezoner\n\nA simple .NET library to provide a consistent list of time zones with Id, Name, and Offset across all platforms.\n\n[![NuGet](https://img.shields.io/nuget/v/Timezoner.svg)](https://www.nuget.org/packages/Timezoner/)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/Timezoner.svg)](https://www.nuget.org/packages/Timezoner/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Why Timezoner?\n\nTimeZoneInfo provides timezones that are available for a particular system, but that list can vary from system to system. This library provides consistent timezone data across Windows, Linux, and macOS platforms.\n\n## Installation\n\n```bash\ndotnet add package Timezoner\n```\n\nOr via Package Manager:\n```powershell\nInstall-Package Timezoner\n```\n\n## Features\n\n- ✅ Consistent timezone data across all platforms (Windows, Linux, macOS)\n- ✅ Simple and lightweight\n- ✅ Provides timezone Id, Name, and Offset\n- ✅ Built for .NET 10.0\n- ✅ Zero dependencies\n\n## Methods\n\n- `GetTimezones()` - Returns a list of all available timezones\n- `GetTimezoneById(string id)` - Returns a specific timezone by its Id\n- `GetOffsetAsTimeSpan(string id)` - Returns the UTC offset for a timezone by its Id\n- `GetOffsetAsTimeSpan(Timezone zone)` - Returns the UTC offset for a timezone object\n\n## Usage\n\n```csharp\n// Get all timezones\nvar timezones = Timezoner.GetTimezones();\n\n// Get a specific timezone by Id\nvar timezone = Timezoner.GetTimezoneById(\"Eastern Standard Time\");\n\n// Get offset as TimeSpan by Id\nvar offset = Timezoner.GetOffsetAsTimeSpan(\"Eastern Standard Time\");\n\n// Get offset as TimeSpan from Timezone object\nvar offset = Timezoner.GetOffsetAsTimeSpan(timezone);\n```\n\n## Demo\n\nSee Timezoner in action: [Live Demo](https://zealous-island-09cfe4010.azurestaticapps.net/)\n\nThe demo is a Blazor WebAssembly app, but the library can be used in any .NET application (Console, Web API, Desktop, etc.).\n\n\u003e **Note:** The demo site currently runs on .NET 9 and references Timezoner v1.7.1 until Azure Static Web Apps natively supports .NET 10 in their build pipeline. We prefer to wait for official support rather than implement workarounds.\n\n## Requirements\n\n- **Latest version (2.x)**: .NET 10.0 or later\n- **Previous versions (1.x)**: .NET 8.0 and .NET 9.0 (available on NuGet)\n\n## Links\n\n- [NuGet Package](https://www.nuget.org/packages/Timezoner/)\n- [GitHub Repository](https://github.com/dahln/timezoner)\n- [Report Issues](https://github.com/dahln/timezoner/issues)\n- [Live Demo](https://zealous-island-09cfe4010.azurestaticapps.net/)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nCopyright (c) 2025 Dahln Farnes - [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahln%2Ftimezoner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdahln%2Ftimezoner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahln%2Ftimezoner/lists"}