Effortless Time Zone Conversion with TimeZoneDB API Integration
detail.loadingPreview
Automate time zone conversions seamlessly with this n8n workflow. It integrates directly with the TimeZoneDB API to accurately convert times between any two time zones, providing instant results via a webhook.
About This Workflow
This n8n workflow empowers you to automate time zone conversions with precision and ease. By leveraging the robust capabilities of the TimeZoneDB API, it provides a reliable solution for translating timestamps from a source time zone to a target time zone. The workflow is designed to be triggered by a simple webhook, making it incredibly versatile for integration into various applications and services. Upon receiving a request with the source zone, target zone, and a Unix timestamp, it securely retrieves your TimeZoneDB API key, queries the API, and returns the converted time, all without exposing sensitive credentials directly.
Key Features
- Automated Time Zone Conversion: Instantly convert any Unix timestamp from one IANA time zone to another.
- Secure API Key Management: Integrates with n8n's credential system to securely manage your TimeZoneDB API key, preventing exposure.
- Webhook Triggered: Easily initiate conversions by sending a POST request to a defined webhook endpoint.
- Real-time Responses: Receives the converted time and relevant API data back from TimeZoneDB and forwards it to the caller.
- Flexible Input: Accepts
fromZone,toZone, andtime(Unix timestamp) as parameters in the webhook request body.
How To Use
- Set up TimeZoneDB Credentials: In n8n, navigate to Credentials and add a new 'HTTP Query Auth' credential, naming it 'TimeZoneDB API' and entering your TimeZoneDB API key.
- Configure the Webhook Node: The 'Receive Time Conversion Request' node is pre-configured to listen for POST requests at the
/convert-timezonepath. Ensure it's set to 'Response Mode: Response Node'. - Define Webhook Payload: When sending a request to the webhook, include a JSON body with
fromZone(e.g.,America/New_York),toZone(e.g.,Europe/London), andtime(Unix timestamp in seconds). - Connect Nodes: Ensure the 'Receive Time Conversion Request' node is connected to the 'Convert Timezone (TimeZoneDB)' node, and that node is connected to the 'Respond with Converted Time' node.
- Activate the Workflow: Enable the workflow in n8n to start receiving conversion requests.
Apps Used
Workflow JSON
{
"id": "12c08f47-e4da-423a-9cff-8c9a7b37aaa6",
"name": "Effortless Time Zone Conversion with TimeZoneDB API Integration",
"nodes": 19,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 12c08f47-e4da...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.