AutomationMart
Home/Browse/Convert time zones with TimeZoneDB API integration
n8n

Convert time zones with TimeZoneDB API integration

n8nn8n3 modulesv1.0
SlackGoogle CalendarOutlook

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 th

At a glance

Convert time zones with TimeZoneDB API integration is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Slack, Google Calendar, Outlook. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Slack, Google Calendar, Outlook
Modules
3
Price
Free
Version
v1.0
Convert time zones with TimeZoneDB API integration workflow diagram

About this workflow

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. --- πŸ‘€ Who is it for? This workflow is extremely useful for: - Global Businesses & Remote Teams: Seamlessly schedule meetings, set deadlines, and coordinate tasks across different time zones, eliminating confusion and missed appointments. - Event Organizers & Marketers: Publish event times accurately for a global audience, improving attendance and engagement for webinars, online conferences, or product launches. - Customer Support Centers: Provide precise response times or service availability to customers in their local time zone, enhancing customer satisfaction. - Travelers & Digital Nomads: Easily calculate arrival/departure times in local timezones when planning trips or managing schedules across borders. - Developers & Integrators: Integrate accurate time zone conversion capabilities into custom applications, dashboards, or internal tools without building complex logic from scratch. - Data Analysts: Standardize timestamps from global data sources for consistent reporting and analysis, especially when dealing with international operations. --- πŸ“‘ Data Structure When you trigger the webhook, send a POST request with a JSON body structured as follows: 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): --- βš™οΈ Setup Instructions - Get a TimeZoneDB API Key: - Go to and sign up for a free API key. - Create an n8n Credential for TimeZoneDB: - In your n8n instance, go to Credentials. - Click "New Credential" and search for "HTTP Query Auth". - Set the Name (e.g., TimeZoneDB API). - Set API Key to your TimeZoneDB API key. - Set Parameter Name to key. - Set Parameter Position to Query. - Save the credential. - Import Workflow: - In your n8n editor, click "Import from JSON" and paste the provided workflow JSON. - Configure TimeZoneDB API Node: - Double-click the Convert Timezone (TimeZoneDB) node. - Under "Authentication", select "Generic Credential Type". - Choose "HTTP Query Auth" as the Generic Auth Type. - Select the credential you created (e.g., "TimeZoneDB API") from the dropdown. - - Configure Webhook Path: - Double-click the Receive Time Conversion Request node. - In the 'Path' field, set a unique and descriptive path (e.g., /convert-timezone). - - Activate Workflow: - Save and activate the workflow. --- πŸ“ Tips This time zone converter is an essential building block that can be significantly expanded and integrated: - Robust Error Handling & Input Validation: - Upgrade: Add an IF node after the Receive Time Conversion Request to validate inputs (fromZone, toZone, time). Check if they are present and correctly formatted. - Upgrade: After the Convert Timezone (TimeZoneDB) node, add another IF node to check {{ $json.status === 'OK' }}. If the status is not OK, return a descriptive error message from {{ $json.message }} to the webhook caller. - Leverage: Provide clear feedback to users when invalid data is provided, preventing workflow failures and improving user experience. - Flexible Time Input: - Upgrade: Currently, the time input must be a Unix timestamp. Add a Function node before the Convert Timezone (TimeZoneDB) node to accept an ISO 8601 string (e.g., "2025-06-03T22:07:42Z") and convert it to a Unix timestamp using new Date($json.body.isoTime).getTime() / 1000. - Leverage: Make the API easier to use for callers who prefer ISO dates over Unix timestamps. - Human-Readable Output: - Upgrade: Add a Function node after Convert Timezone (TimeZoneDB). Use JavaScript's Date object and toLocaleString() to format the toTimestamp into a user-friendly string (e.g., "Tuesday, June 3, 2025, 10:07:42 PM"). - Leverage: Provide a more immediately consumable output that doesn't require further client-side processing, enhancing integration ease. - Automated Meeting/Event Scheduling: - Upgrade: Combine this workflow with a Google Calendar or Outlook Calendar node. Accept a meeting time in one timezone and a list of attendee timezones. Loop through attendees, convert the time, and then add calendar invites for each. - Leverage: Fully automate the creation of timezone-aware calendar events, a huge time-saver for international teams. - Dynamic Website Content: - Upgrade: Integrate this webhook into your website's backend. When a user lands on a page with time-sensitive information, detect their IP (and thus their timezone, perhaps using a separate IP lookup service) and then use this workflow to convert all relevant times to their local time. - Leverage: Personalize the user experience by showing all times relevant to their location, improving clarity and usability. - Smart Notification Delivery: - Upgrade: If you send out automated notifications (e.g., Slack, Email, SMS) based on a specific time, use this workflow to ensure the notification arrives at a "friendly" local hour for each recipient. - Leverage: Avoid sending notifications in the middle of the night for international users, improving engagement and reducing annoyance.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create a Google Calendar event from a tagged Asana task (or subtask)

Every time an Asana task or subtask is tagged, Make will automatically create a Google Calendar event.

Free

Send a Slack message from DocuSign envelope status change

Every time a new event occurs in DocuSign, a Slack message will be sent immediately.

Free

Create Google Calendar events from custom webhook data and respond via webhook

Automatically create Google Calendar events from custom webhook data and send responses via webhook, streamlining your scheduling and communication process.

Free

Send new articles from RSS feeds to Slack with a message using Claude AI

Keep your team updated with the latest content by sending new articles from RSS feeds to Slack with a custom message using Claude AI.

Free

Create new Google Calendar events from new Chatbot messages

Every time a new ChatBot message is received, a new event will be created in Google Calendar. Please note that this template is based on the "Lead Generation Bot" ChatBot template which was enriched with a webhook action at the very end. This template works with these variables from ChatBot: 1) `CompanyName` 2) `default_name` 3) `Team` 4) `CompanyNeed` 5) `default_email` Depending on how exactly your bot is configured, available variables may vary and you should run the scenario at least once

Free

Send a Slack notification when a new Invoice Ninja invoice is created

Use this template to automatically create and send a Slack message when a new Invoice Ninja invoice is created.

Free

Store retell transcripts in Sheets, Airtable or Notion from webhook

Automatically store Retell transcripts in Google Sheets/Airtable/Notion from webhook Overview - This workflow stores the results of a Retell voice call (transcript, analysis, etc.) once it has ended and been analyzed. - It listens for callanalyzed webhook events from Retell and stores the data in Airtable, Google Sheets, and Notion (choose based on your stack). - Useful for anyone building Retell agents who want to keep a detailed history of analyzed calls in structured tools. Who is it for For

Free

Build your own GitHub MCP server

This n8n demonstrates how to build your own Github MCP server to personalise it to your organisation's repositories, issues and pull requests. This n8n implementation, though not as fully featured as the official MCP server offered by Github, allows you to control precisely what access and/or functionality is granted to users which can make MCP use simpler and in some cases, more secure. The use-case in this template is to simply view and comment on issues within a specific repository but can be

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free