Convert UTC to MENA local time with Hijri seasons and Ramadan send rules
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 10 nodes and runs when another workflow calls it (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- Set Default Parameters (Edit Fields (Set)): sets 6 fields: tz, country, audience…
- Build Assertion Cases (Code): runs custom JavaScript code
- Calculate Local Time & Work Week (Code): runs custom JavaScript code
- Determine Hijri Date & Season (Code): runs custom JavaScript code
- Identify Daypart & Send Window (Code): runs custom JavaScript code
- Check Self Test Condition (If): checks a condition and branches into true / false
- Perform Assertions & Reporting (Code): runs custom JavaScript code
- Return MENA Clock Contract (Edit Fields (Set)): sets 25 fields: local_iso, local_date, utc_offset…
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
Quick overview This sub-workflow takes a UTC timestamp and MENA locale inputs and returns a typed object with local time, workweek/weekend status, Hijri (Umm al-Qura) season flags, and Ramadan-aware sendability rules including a suggested next send time. How…