AutomationFlowsWeb Scraping › Convert Time Zones with Timezonedb API Integration

Convert Time Zones with Timezonedb API Integration

Byist00dent @ist00dent on n8n.io

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…

Webhook trigger★★☆☆☆ complexity6 nodesHTTP Request
Web Scraping Trigger: Webhook Nodes: 6 Complexity: ★★☆☆☆ Added:

This workflow corresponds to n8n.io template #4624 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "P7c87hjmVGCrI5Hd",
  "name": "Convert Time Zones with TimeZoneDB API Integration",
  "tags": [],
  "nodes": [
    {
      "id": "5b7534b7-7ad2-4f8e-9ef0-67bae5b9295b",
      "name": "Note: Webhook Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        80
      ],
      "parameters": {
        "width": 340,
        "height": 560,
        "content": "## Webhook Input\n\nThis node listens for incoming POST requests. It expects a JSON body with the following properties:\n\n* `fromZone` (source timezone IANA name, e.g., `America/New_York`)\n* `toZone` (target timezone IANA name, e.g., `Europe/London`)\n* `time` (Unix timestamp in seconds, e.g., `1678886400` for March 15, 2023 12:00:00 PM UTC)\n\n**Note:** The TimeZoneDB API key is handled securely by n8n's credential system and should **not** be included in the webhook body."
      },
      "typeVersion": 1
    },
    {
      "id": "25af01e7-59e7-4339-adbf-07fd1398135c",
      "name": "Note: TimeZoneDB API Call",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        160
      ],
      "parameters": {
        "color": 2,
        "width": 400,
        "height": 480,
        "content": "## TimeZoneDB API Call\n\nThis node makes an HTTP GET request to the TimeZoneDB API's `convert-time-zone` endpoint. It dynamically constructs the URL using the source zone, target zone, and Unix timestamp provided in the webhook body.\n\n**Crucially, the API key is retrieved securely from n8n's pre-configured credentials**, ensuring it is not exposed directly in the workflow's URL parameters or webhook body. This fetches the converted time."
      },
      "typeVersion": 1
    },
    {
      "id": "a5f0025b-1291-4e6d-ad83-90742eb69e12",
      "name": "Note: Webhook Response",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1740,
        240
      ],
      "parameters": {
        "color": 3,
        "width": 360,
        "height": 400,
        "content": "## Webhook Response\n\nThis node sends the conversion result received from the TimeZoneDB API back to the original webhook caller. The response includes the converted time, the time zone names, and status information provided by the API."
      },
      "typeVersion": 1
    },
    {
      "id": "f5e1f969-313f-4ac0-bc53-91bb66556254",
      "name": "Receive Time Conversion Request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1000,
        480
      ],
      "parameters": {
        "path": "convert-timezone",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "f3725910-1f3f-44c8-9c54-3fd4a55ea524",
      "name": "Respond with Converted Time",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1860,
        480
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1.2
    },
    {
      "id": "202847ea-f056-455f-970c-758ce5d61e17",
      "name": "Convert Timezone (TimeZoneDB)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1440,
        480
      ],
      "parameters": {
        "url": "=http://api.timezonedb.com/v2.1/convert-time-zone?format=json&from={{$json.body.fromZone}}&to={{$json.body.toZone}}&time={{$json.body.time}}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth"
      },
      "credentials": {
        "httpQueryAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "05d74ef8-eb7c-442c-9786-0d40880fc9d7",
  "connections": {
    "Convert Timezone (TimeZoneDB)": {
      "main": [
        [
          {
            "node": "Respond with Converted Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Time Conversion Request": {
      "main": [
        [
          {
            "node": "Convert Timezone (TimeZoneDB)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

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…

Source: https://n8n.io/workflows/4624/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

This template is designed for developers, businesses, and service providers who need to programmatically check Calendly availability. It's perfect for: Web developers building custom booking interface

HTTP Request
Web Scraping

Never lose a prospect to a missed call again. This workflow sends an automatic "sorry we missed you" SMS within seconds, follows up 2 hours later if there's no reply, and enrolls unresponsive contacts

HTTP Request
Web Scraping

Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.

HTTP Request
Web Scraping

Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.

HTTP Request
Web Scraping

Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.

HTTP Request