workflows.fit
Back to n8n workflows
n8n templateFreeBy ist00dent

Convert time zones with TimeZoneDB API integration

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 i...

DevelopmentCore NodesUtilitySticky NoteWebhookRespond To WebhookHttp Request
Loading interactive preview...

Template notes

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 - Receive Time Conversion Request: This node acts as the entry point for the workflow, listening for incoming POST requests. It's configured to expect a JSON body containing the following parameters:

- fromZone: The IANA timezone name for the source time zone (e.g., America/NewYork, Asia/Manila, Europe/London). - toZone: The IANA timezone name for the target time zone. - time: The Unix timestamp (in seconds) representing the time in the fromZone that you wish to convert.

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

- Convert Timezone (TimeZoneDB): This node makes an HTTP GET request to the TimeZoneDB API (api.timezonedb.com). It dynamically constructs the API request URL using the fromZone, toZone, and time values extracted from your webhook request. Your API key is securely retrieved from n8n's pre-configured credentials and automatically added as a query parameter. The API performs the conversion and returns a JSON object containing the converted time and other timezone details.

- Respond with Converted Time: This node sends the full conversion result received from TimeZoneDB back to the service that initiated the webhook.

---