Templates / Convert UTC to MENA local time with Hijri seasons and Ramadan send rules

Convert UTC to MENA local time with Hijri seasons and Ramadan send rules

Ready for 3.0

by Ibrahim ✓ · 2 views · created 2026-08-06 · Document Extraction, AI Summarization

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

📬 Weekly n8n 3.0 breakage alerts, free

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

  1. Set Default Parameters (Edit Fields (Set)): sets 6 fields: tz, country, audience…
  2. Build Assertion Cases (Code): runs custom JavaScript code
  3. Calculate Local Time & Work Week (Code): runs custom JavaScript code
  4. Determine Hijri Date & Season (Code): runs custom JavaScript code
  5. Identify Daypart & Send Window (Code): runs custom JavaScript code
  6. Check Self Test Condition (If): checks a condition and branches into true / false
  7. Perform Assertions & Reporting (Code): runs custom JavaScript code
  8. 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.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (5)

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…

Excerpt from Ibrahim's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.