⚡ Convert time zones with TimeZoneDB API integration

312 views · ⚡ Personal Productivity

Description

This n8n template provides a powerful utility for converting a specific time from one time zone to another by leveraging the TimeZoneDB API. This is an essential tool for anyone coordinating global teams, scheduling international events, or simply needing to understand time differences across the world.


🔧 How it works

Important: Your TimeZoneDB API key is handled securely by n8n’s credential system and should not be included in the webhook body.


👤 Who is it for?

This workflow is extremely useful for:


📑 Data Structure

When you trigger the webhook, send a POST request with a JSON body structured as follows:

{
  "fromZone": "America/New_York",
  "toZone": "Asia/Manila",
  "time": 1678886400  // Unix timestamp for 2023-03-15 00:00:00 UTC (example)
}

Note: You’ll need to obtain a free or paid API Key from TimeZoneDB to use their API.

The workflow will return a JSON response similar to this (results will vary based on inputs):

{
  "status": "OK",
  "message": "",
  "fromZoneName": "America/New_York",
  "fromAbbreviation": "-04",
  "fromTimestamp": 1678886400,
  "toZoneName": "Asia/Manila",
  "toAbbreviation": "+08",
  "toTimestamp": 1678933200,
  "offset": 46800 // difference in seconds
}

⚙️ Setup Instructions


📝 Tips

This time zone converter is an essential building block that can be significantly expanded and integrated:

🔗 Nodes Used

HTTP Request, Webhook

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup