OpenTimezone is an open source, free, public API that converts time between different time zones.
OpenTimezone provides:
- A free, public API at api.opentimezone.com.
- Documentation at opentimezone.com.
- Self-hosting support (see the Installation section).
curl -X 'POST' \
'https://api.opentimezone.com/convert' \
-H 'Content-Type: application/json' \
-d '{
"dateTime": "2024-10-14T00:00:00.000",
"fromTimezone": "America/New_York",
"toTimezone": "Europe/London"
}' curl -X 'POST' \
'https://api.opentimezone.com/convert' \
-H 'Content-Type: application/json' \
-d '{
"dateTime": "2025-09-17T04:36:48.131338",
"fromTimezone": "UTC",
"toTimezone": "America/New_York"
}'curl -X 'POST' \
'https://api.opentimezone.com/convert' \
-H 'Content-Type: application/json' \
-d '{
"dateTime": "2025-09-17T00:36:48.131394",
"fromTimezone": "America/New_York",
"toTimezone": "UTC"
}'curl -X 'GET' 'https://api.opentimezone.com/timezones'- Docker.
- From the root folder of the project, run the following commands:
docker build -t opentimezone -f ./src/Timezone.WebApi/Dockerfile . docker run -it -p 5280:8080 opentimezone - The API can be accessed at http://localhost:5280.
- Visual Studio 2026.
- With ASP.NET and web development installed from the Visual Studio Installer.
- Docker.
- .NET 10 SDK.
- Open the solution in Visual Studio 2026.
- Run it using Docker.
- The API can be accessed at https://localhost:5281.
- Open the solution in Visual Studio 2026.
- Run the tests in Test Explorer.
Pull requests are accepted.
MIT.