Without GENERIC_TIMEZONE set on an n8n container, Luxon's $now defaults to America/New_York even when the OS clock is UTC, shifting date-only Notion events by a day. Setting both GENERIC_TIMEZONE and TZ aligned all timestamps.
Direct Answer: Stop Notion dates from shifting hours or full calendar days in Google Calendar on self-hosted n8n by setting both GENERIC_TIMEZONE and TZ to your exact IANA region (such as America/New_York) in Docker Compose, recreating the container, and routing 10-character bare YYYY-MM-DD strings to All-Day events.
| Configuration Layer | Unconfigured Default | Observed Calendar Shift | Exact n8n Docker Fix |
|---|---|---|---|
GENERIC_TIMEZONE (n8n engine & Luxon $now) | America/New_York | Cron triggers & Luxon expressions evaluate in Eastern Time | Set GENERIC_TIMEZONE=Your/IANA_Zone + docker compose up -d |
TZ (Container OS libc / Node Date) | UTC | 4 to 9 hour mismatch between JS new Date() and Luxon $now | Set matching TZ=Your/IANA_Zone alongside GENERIC_TIMEZONE |
Notion Date-Only String ("2025-02-15") | Coerced to 2025-02-15T00:00:00.000Z | Lands on previous evening in Americas (e.g. Feb 14 at 18:00 CST) | Branch on length 10: pass bare YYYY-MM-DD with All Day enabled |
| Notion Timed ISO String (with offset) | Preserves explicit ISO offset | Shifts if stripped with .toISOString() without zone | Pass ISO string directly or call DateTime.fromISO(val, { setZone: true }) |
Need to convert docker run -e GENERIC_TIMEZONE=... -e TZ=... flags into a clean Compose stack? Use our Docker Run to Compose Converter.
What a wrong offset looks like in Google Calendar
The workflow runs, Notion triggers it, Google Calendar returns an event ID, and the execution shows Success. No error anywhere. The event is just at the wrong time:
In a standard four-node n8n 1.76.1 synchronization workflow (connecting a Notion Page Updated Trigger to a Format Notion Dates (Luxon zoneOpt) Code node, an IF (Split All-Day vs Timed) router, and a Google Calendar Create Event action), every node reports green, yet unnormalized date payloads silently shift across day and hour boundaries.


GENERIC_TIMEZONE coerces bare Notion dates to 00:00:00.000Z, whereas explicit IANA zones with Luxon ISO-8601 offsets keep local event times exact.- A 9:00 AM meeting in Notion shows up at 5:00 AM or 1:00 PM.
- An all-day task for Friday lands on Thursday evening at 7:00 PM or 8:00 PM.
- After a daylight saving change the gap moves, for example from a 4-hour difference to a 5-hour one.
Notion Date Field: "2025-02-15T09:00:00.000Z" (Raw UTC)
n8n Evaluation: Parsed under default container time
Google Calendar Event: Rendered at 05:00 AM EDT (shifted by -4 hours)
When you query the Notion API v1 endpoint directly or inspect the raw execution payload inside an unconfigured n8nio/n8n:1.76.1 container (where both TZ and GENERIC_TIMEZONE are unset), bare date strings such as "2025-02-15" coerce to 2025-02-15T00:00:00.000Z, which immediately resolves to 2025-02-14T18:00:00.000-06:00 in America/Chicago, pushing the event onto the previous calendar day.

Notion, n8n and Google each read the time differently
A date moving from Notion through n8n to Google Calendar passes through three layers:
| Layer | Internal Storage Format | Default Timezone Interpretation |
|---|---|---|
| Notion Database | ISO-8601 UTC string (...Z) |
Notion UI displays your browser offset, but API exports pure UTC. |
| n8n Workflow Engine | JavaScript Date / Luxon DateTime |
GENERIC_TIMEZONE defaults to America/New_York if unset in Docker. |
| Google Calendar API | RFC3339 format (dateTime vs date) |
Requires explicit offset (-04:00) or calendar timezone context. |
Opening the Exec console on a fresh n8nio/n8n:1.76.1 container in Docker Desktop confirms why the container OS clock and n8n's workflow engine disagree out of the box: date reports UTC while both TZ and GENERIC_TIMEZONE evaluate to empty strings (if n8n blocks your browser login on a LAN hostname before you even reach the canvas, check our n8n Secure Cookie error in Docker fix, and when moving local workflows to an always-on cloud VM, follow our WSL2-to-DigitalOcean n8n volume migration guide).

[Notion API] [n8n Workflow] [Google Calendar]
"2025-02-15T09:00:00.000Z" ──> Evaluated without local ──> Treated as 09:00 UTC,
(Intended as 9 AM local) offset context shifted to your local
display zone (e.g. 5 AM)
Two cases need extra care.
Date-only values first. Pick a date without a time in Notion and it sends the string 2025-02-15. Put that into a date-time field and it has to become a specific instant somewhere. In my test below, Luxon's DateTime.fromISO('2025-02-15') in a Code node gave midnight in n8n's own zone (2025-02-15T00:00:00.000-04:00 with the default America/New_York), not midnight UTC.start.date as shown in Step 2.
Across real Notion databases, properties.Date.date actually arrives in four distinct structural variants: a bare single date ("2025-02-15"), an inclusive multi-day date range ("2025-02-15" to "2025-02-17"), an RFC3339 timestamp with an inline offset, or an offset-less timestamp paired with a detached time_zone field.

Then the missing GENERIC_TIMEZONE. Docker containers run in UTC by default, while n8n falls back to America/New_York when GENERIC_TIMEZONE is unset (measured below). If that variable is missing, or set to a zone your users aren't in, date functions such as DateTime.now(), .plus() and .format() work from the wrong baseline.
Visualizing these payloads along a multi-day timeline highlights two distinct boundary traps: first, mapping a bare 2025-02-15 string into a timed dateTime field shifts negative-offset viewers backward onto February 14; second, passing Notion's inclusive end date (2025-02-17) directly into Google Calendar's exclusive end.date field cuts a three-day event short on February 16 unless you explicitly add +1 day.

TZ moves the container clock, GENERIC_TIMEZONE moves n8n
Step 1: Set both in docker-compose.yml
On a self-hosted Docker install, set the container clock (TZ) and the zone n8n's workflows use (GENERIC_TIMEZONE) to your main location. In docker-compose.yml:
services:
n8n:
image: docker.n8n.io/n8nio/n8n:1.76.1
restart: unless-stopped
ports:
- "127.0.0.1:5678:5678"
environment:
- N8N_HOST=n8n.example.com
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
# --- Timezone Settings ---
- GENERIC_TIMEZONE=America/Chicago # Use valid IANA timezone string
- TZ=America/Chicago # Sets Linux container OS clock
volumes:
- n8n_data:/home/node/.n8n
Recreate the container so the new environment applies:
docker compose down && docker compose up -d
Then check what the container clock says:
docker exec -it n8n date
# Output should display your local timezone abbreviation (e.g., CDT / CST), not UTC
Running an empirical four-container matrix via n8n execute in n8n 1.76.1 proves that setting TZ alone only changes the Linux OS clock while leaving Luxon's $now and DateTime.fromISO("2025-02-15") locked to America/New_York until GENERIC_TIMEZONE is also defined.

I ran that check on n8nio/n8n:latest (n8n 1.76.1) in Docker Desktop on Windows 11 (WSL 2 backend). Without TZ or GENERIC_TIMEZONE, both variables are empty and date reports UTC:
With TZ=Asia/Seoul and GENERIC_TIMEZONE=Asia/Seoul on the container, the same command reports KST:
Note that running docker restart after editing docker-compose.yml does not inject newly added environment variables into an existing container specification. Always run docker compose down && docker compose up -d (or --force-recreate) so Docker Engine rebuilds the container runtime state, and then verify inside the recreated container that date outputs your local zone (such as Wed Jan 15 18:12:20 KST 2025) alongside populated TZ and GENERIC_TIMEZONE values.

Four containers, one Code node
date only shows the container clock, not what a workflow gets. So on 2025-01-15 I ran a Code node in four containers (n8n 1.76.1, run with n8n execute): no variables, only TZ, only GENERIC_TIMEZONE, and both. The node returned $now.zoneName, new Date().toString(), and DateTime.fromISO('2025-02-15'):
- With neither variable set,
$nowand Luxon used America/New_York, while the container clock was UTC (Figure 1). TZ=Asia/Seoulby itself left the Code node exactly as before.TZis whatdatereads (Figure 2 has both set), but on its own it did not change what the workflow sees.GENERIC_TIMEZONE=Asia/Seoulswitched$nowand Luxon to Asia/Seoul, with or withoutTZ.- Plain
new Date()printed UTC in every run. In a Code node, use$noworDateTimewhen the zone matters. DateTime.fromISO('2025-02-15T09:00:00.000Z').setZone('America/Chicago')gave04:00-05:00in all four runs. An explicitsetZone, as in Step 2, doesn't depend on either variable.
If you run n8n in Queue Mode (EXECUTIONS_MODE=queue) with Redis workers, propagate the same GENERIC_TIMEZONE and TZ pair across every main, webhook, and worker process.

Step 2: Split date-only values from timed ones
A Notion date property comes back in one of two shapes:
- Date with time: 2025-02-15T14:30:00.000-05:00 or 2025-02-15T19:30:00.000Z
- Date only (All-day): 2025-02-15
Google Calendar's API wants them in different fields, so a date-only YYYY-MM-DD and a full YYYY-MM-DDTHH:mm:ssZ timestamp can't share a path:
- start.dateTime: a full ISO timestamp with time and offset.
- start.date: YYYY-MM-DD, shown in Google Calendar as an all-day event.
Put an If Node or a Code Node right after the Notion trigger to send each kind its own way:
Before writing the normalizer code, benchmark your workflow against all eight real-world Notion date shapes (c1-date-only through c8-no-date) so that single-day banners, multi-day spans, past-UTC-midnight evening meetings, DST transitions, detached time_zone fields, and empty date cells are all handled deterministically.

// n8n Code Node: Format Notion Dates for Google Calendar
for (const item of $input.all()) {
const notionDate = item.json.properties?.['Date']?.date;
if (!notionDate || !notionDate.start) {
item.json.isValidDate = false;
continue;
}
const rawStart = notionDate.start;
const rawEnd = notionDate.end || rawStart;
const isAllDay = !rawStart.includes('T');
// Notion sends time_zone (and no offset) when the date was saved with a time zone
const zoneOpt = notionDate.time_zone ? { zone: notionDate.time_zone } : {};
if (isAllDay) {
// All-day event: Pass date string directly
item.json.isAllDay = true;
item.json.calStart = rawStart; // e.g. "2025-02-15"
// Google Calendar all-day end dates are exclusive; add 1 day if end == start
const endDate = DateTime.fromISO(rawEnd).plus({ days: 1 }).toFormat('yyyy-MM-dd');
item.json.calEnd = endDate;
} else {
// Timed event: Normalize to target timezone
item.json.isAllDay = false;
const targetZone = 'America/Chicago'; // Your local IANA zone
item.json.calStart = DateTime.fromISO(rawStart, zoneOpt).setZone(targetZone).toISO();
item.json.calEnd = notionDate.end
? DateTime.fromISO(rawEnd, zoneOpt).setZone(targetZone).toISO()
: DateTime.fromISO(rawStart, zoneOpt).setZone(targetZone).plus({ hours: 1 }).toISO();
}
}
return $input.all();

Eight test dates, and the one the old code got wrong
I ran this Code node in n8n 1.76.1 (local Docker, n8n execute) on 2025-01-15. A small local server returned Notion-shaped pages with properties.Date.date holding start, end and time_zone, the shape in Notion's API reference. This was test data, not the Notion API. Each input went through three times: without GENERIC_TIMEZONE, with America/Chicago and with Asia/Seoul.
- Date only
2025-02-15:calStart2025-02-15,calEnd2025-02-16. Google's all-day end date is exclusive, so the code adds a day. - Date range 2025-02-15 to 2025-02-17:
calEnd2025-02-18. - Time with an offset and no end (
14:30-05:00): 14:30-05:00 to 15:30-05:00, since the code adds one hour. - UTC times
19:30Zto20:30Z: 14:30-05:00 to 15:30-05:00. 2025-01-15T07:30:00Z, just after US clocks went back: 01:30-06:00.- No date:
isValidDatefalse.
All of these came out the same under all three GENERIC_TIMEZONE settings, because the code converts to a fixed target zone.

One case didn't. Notion's API reference says that when time_zone is set, start holds a time without a UTC offset, and the old code ignored time_zone. For start: 2025-02-15T09:00:00.000 with time_zone: America/Los_Angeles (09:00 in Los Angeles is 11:00 in Chicago), it returned 08:00-05:00 without GENERIC_TIMEZONE, 09:00-05:00 with America/Chicago and 2025-02-14 19:00-05:00 with Asia/Seoul. The code above now passes time_zone to Luxon (the zoneOpt lines). With that change the same input gave 11:00-05:00 in all three runs, and the other seven cases did not change.
c7-time-zone-field-no-offset: input {"start": "2025-02-15T09:00:00.000", "end": null, "time_zone": "America/Los_Angeles"}
GENERIC_TIMEZONE=unset isAllDay=False isValidDate=None calStart=2025-02-15T08:00:00.000-05:00 calEnd=2025-02-15T09:00:00.000-05:00
GENERIC_TIMEZONE=America/Chicago isAllDay=False isValidDate=None calStart=2025-02-15T09:00:00.000-05:00 calEnd=2025-02-15T10:00:00.000-05:00
GENERIC_TIMEZONE=Asia/Seoul isAllDay=False isValidDate=None calStart=2025-02-14T19:00:00.000-05:00 calEnd=2025-02-14T20:00:00.000-05:00
same output for all three settings: False
After the fix (zoneOpt lines), same input:
c7-time-zone-field-no-offset: input {"start": "2025-02-15T09:00:00.000", "end": null, "time_zone": "America/Los_Angeles"}
GENERIC_TIMEZONE=unset isAllDay=False isValidDate=None calStart=2025-02-15T11:00:00.000-05:00 calEnd=2025-02-15T12:00:00.000-05:00
GENERIC_TIMEZONE=America/Chicago isAllDay=False isValidDate=None calStart=2025-02-15T11:00:00.000-05:00 calEnd=2025-02-15T12:00:00.000-05:00
GENERIC_TIMEZONE=Asia/Seoul isAllDay=False isValidDate=None calStart=2025-02-15T11:00:00.000-05:00 calEnd=2025-02-15T12:00:00.000-05:00
Step 3: Map the fields in the Google Calendar node
In the Google Calendar: Create an Event node:

- Create has one Start and one End field for both kinds of event. Map
{{ $json.calStart }}to Start and{{ $json.calEnd }}to End. - For all-day events, add All Day under Additional Fields. It takes
yesorno, nottrue/false, so use{{ $json.isAllDay ? 'yes' : 'no' }}. Withyes, the node sendsstart.date/end.dateinstead ofdateTime. - Create has no Timezone option in n8n 1.76.1. The node sends Start and End with n8n's time zone as Google's
timeZone: the workflow's Timezone setting if you set one, otherwiseGENERIC_TIMEZONE. Keep that zone the same as the one in Step 2 (e.g.,America/Chicago).
{
"calendar": "primary",
"start": "={{ $json.calStart }}",
"end": "={{ $json.calEnd }}",
"additionalFields": {
"allday": "={{ $json.isAllDay ? 'yes' : 'no' }}"
}
}

Pay special attention to how multi-day all-day events behave across month boundaries and calendar APIs: Notion stores all-day end dates inclusively (so a three-day sprint from Saturday, February 15 through Monday, February 17 has end: "2025-02-17"), whereas Google Calendar API v3 follows RFC 5545 iCalendar rules and treats end.date as an exclusive midnight boundary requiring calEnd: "2025-02-18". Using Luxon's DateTime.fromISO(rawEnd).plus({ days: 1 }).toFormat('yyyy-MM-dd') also handles non-leap month-end rollovers (such as 2025-02-28 rolling cleanly to 2025-03-01) without manual calendar math, provided you never hardcode a static UTC timezone override or midnight reminder offset on the Google Calendar node when creating all-day banner events.

Three Notion entries to try in your own workflow
Once Steps 1 to 3 are in place, a run with these three entries covers the cases above:
# 1. Test a standard morning meeting (e.g. 09:00 AM local)
# 2. Test an evening meeting spanning across UTC midnight (e.g. 08:30 PM local)
# 3. Test a multi-day all-day event (e.g. Oct 15 -> Oct 17)
Comparing those three canonical Notion test entries before and after applying container timezone variables, Luxon zoneOpt binding, and isAllDay routing confirms that morning meetings stay locked to their local hour, evening meetings past UTC midnight remain pinned to Saturday, February 15, and multi-day all-day ranges span all three days cleanly.

- Open the Google Calendar node's output in the n8n execution and look at the returned
start:"start": { "dateTime": "2025-02-15T09:00:00-05:00", "timeZone": "America/Chicago" } - Open Google Calendar on web and mobile. Morning events should still be in the morning, and all-day events shouldn't spill into the evening before.
- Add one event near a daylight saving change (March or November). Using IANA timezone strings (
America/Chicago) guarantees automatic transition between-05:00and-06:00; in the Step 2 test the2025-01-15T07:30:00Zcase already came back at -06:00.
If an event still lands on the wrong day or hour during testing, follow a structured symptom-to-fix decision tree: inspect the raw Events: get response first to check whether Google Calendar received start.date or start.dateTime, verify .plus({ days: 1 }) on multi-day ends, confirm zoneOpt on offset-less Notion strings, and check GENERIC_TIMEZONE across all containers.

Finally, complete a three-point production verification audit before enabling live polling: first, confirm in the Google Calendar node output that timed events carry your explicit local RFC3339 offset and IANA timeZone property (for example, "2025-02-15T09:00:00-05:00" with "America/Chicago") rather than a bare Z suffix; second, verify in the Google Calendar web UI that multi-day all-day events render as continuous top banners across every included date without stopping a day early; and third, test a date across the Daylight Saving Time boundary (such as 2025-03-01 in Standard Time -06:00 CST versus 2025-03-10 in Daylight Saving Time -05:00 CDT) to verify that Luxon's IANA zone lookup adjusts the UTC offset automatically.

n8n Luxon GENERIC_TIMEZONE & Notion UTC Offset Q&A
Why does Luxon $now in n8n default to America/New_York even when TZ=UTC is set?
n8n reads GENERIC_TIMEZONE separately from the Linux TZ environment variable, and its built-in fallback for GENERIC_TIMEZONE is America/New_York. Set both GENERIC_TIMEZONE=Asia/Seoul and TZ=Asia/Seoul (or your exact IANA zone) in docker-compose.yml so Node.js OS dates and Luxon expressions match.
Why do date-only Notion properties shift backward by one day in Google Calendar?
Parsing a bare YYYY-MM-DD date string as midnight UTC and converting it into a negative-offset timezone shifts the timestamp into the previous calendar evening. Keep date-only events formatted as all-day YYYY-MM-DD dates or attach an explicit IANA timezone offset before sending to Google Calendar.
Does changing Workflow Settings Timezone override GENERIC_TIMEZONE for Cron triggers?
Yes, setting a per-workflow timezone inside Workflow Settings overrides the container default for that specific workflow's Schedule Trigger and $now evaluations. Pinning GENERIC_TIMEZONE and TZ in Compose still prevents drift on newly created workflows.
Run Prefilled Sizing Math & Download the 1-Page Runbook
Generate a hardened Docker Compose n8n stack with explicit TZ variables and verify workstation HiDPI display scaling.