Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta CAPI event_time wrong timezone or in the future: fix

TRK-181Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Every server-side event you send to Meta through the Conversions API carries an event_time field. It says when the action happened. Meta wants a Unix timestamp: the number of seconds since 1 January 1970 at 00:00 UTC. It has no timezone, so it is always UTC.

The problem appears when the value is wrong. Common causes: a local time converted as if it were UTC, a value in milliseconds (13 digits instead of 10), a date string instead of a number, or a server clock that is ahead of real time.

Common event_time mistakes and what they look like
MistakeExample valueResult
Milliseconds instead of seconds1767225600000Looks like a date far in the future; event is rejected or ignored
Local time treated as UTCReal UTC time plus 2 hoursEvent appears to be in the future
Date string2025-01-31 10:00:00Invalid parameter error
Server clock aheadClock 10 minutes fastEvent time in the future
Old queued eventSent more than 7 days after the actionMeta can drop it

Why it costs you leads or sales

If Meta rejects or drops events, the conversions never reach your ad account. Reporting undercounts, and the delivery system has less data to learn who converts. Events filed at the wrong time land on the wrong day in reports, which makes comparisons with your CRM confusing.

Meta's documentation says events can be sent up to 7 days after they happen, and that times in the future are not valid. Check the current Conversions API docs for exact limits, as they can change.

Where a bad timestamp breaks the chain
  1. Visitor submits formReal conversion happens
  2. Server builds CAPI payloadevent_time set in local time or ms
  3. Meta validates eventRejected or misdated
  4. Ad optimisationConversion missing from reports

The visitor converts, but the server event carries a bad time.

Conversions reported by Meta vs your CRMExample numbers
Conversions reported by Meta vs your CRM (example)CRM leads: 100 leads; Meta, valid time: 96 leads; Meta, bad time: 55 leads038771009655CRM leadsMeta, valid timeMeta, bad timeleads

Example: 100 real leads in the CRM. With a bad event_time on the server events, Meta may show far fewer.

How to check if your site has it

Check your event_time values
  1. Open Events Manager

    In Meta Events Manager, select your Pixel and open the Diagnostics tab. Look for warnings about invalid parameters, event time or events received too late.

  2. Use the Test Events tab

    Send a test CAPI event with a test_event_code and look at the received time. It should match the real UTC moment.

  3. Read the payload

    Log the JSON your server sends. The value must be an integer with 10 digits (today), not a string date and not 13 digits.

  4. Compare clocksCustom code

    Run date -u on the server and compare it with a trusted time source. A drift of more than a few seconds is worth fixing.

  5. Check your plugin or gateway settings

    If a plugin or tag server sends the events, check its timezone setting and its logs for the sent payload.

Check server time and a current Unix timestampbash
date -u
date +%s

How to fix it

The rule is the same everywhere: send an integer, in seconds, based on UTC. Pick your stack below.

Fix event_time by platform
  1. Generate the value in seconds

    Use time() in PHP, Math.floor(Date.now() / 1000) in Node, or int(time.time()) in Python. Never send a formatted date string.

  2. Convert stored times correctly

    If you use the time the lead was saved, convert it from its stored timezone to UTC first, then to seconds.

  3. Sync the server clock

    Enable NTP time sync (for example chrony or systemd-timesyncd) so the clock does not drift ahead.

Correct event_time in a CAPI payload (Node)javascript
const payload = {
  data: [{
    event_name: 'Lead',
    event_time: Math.floor(Date.now() / 1000), // UTC seconds, integer
    event_id: 'lead_12345',
    action_source: 'website',
    event_source_url: 'https://www.example.com/thank-you',
    user_data: { em: ['<sha256 hashed email>'] }
  }]
};
Payload before and after

Broken

  • event_time: 1767225600000 (milliseconds)
  • Or a string like 2025-01-31 10:00:00
  • Or local time shifted by the timezone offset

Fixed

  • event_time: 1767225600 (10-digit integer)
  • Always derived from UTC
  • Server clock synced with NTP

How to confirm it's fixed

Confirmation checklist
  • A test event in Events Manager > Test Events shows the correct received time
  • The Diagnostics tab no longer lists event time warnings
  • Logged payloads show a 10-digit integer for event_time
  • The server clock matches date -u and a trusted source
  • Event counts in Meta move closer to your CRM counts after a few days

How to prevent it happening again

Prevention
  • Keep NTP time sync on for every server that sends events
  • Write one helper function that creates event_time and reuse it everywhere
  • Add a unit test that checks the value is an integer with 10 digits
  • Log rejected CAPI responses and review them weekly
  • Check Events Manager Diagnostics after plugin updates or server moves
  • Send queued events promptly, well within the 7-day window

How FunnelGuard handles this

FunnelGuard does not check this yet. Looking inside server-to-server Conversions API payloads for a wrong event_time is a possible future check, not something it does today.

What FunnelGuard does do nearby: a robot visitor runs your real journeys, such as a lead form or checkout, on a schedule and checks the tracking hits sent to ad platforms, including Meta, plus whether test leads reach your inbox and CRM. That can show you when a conversion stops being reported at all, but it will not tell you the timestamp was wrong.

To watch for it yourself, check Events Manager Diagnostics weekly, review the Test Events tab after any change, and log your payloads. The free plan (1 site, 2 journeys, daily checks, no card) can cover the basic journey while you do this.

Questions people ask

What format should event_time be in for the Meta Conversions API?

It must be a Unix timestamp in seconds, as an integer, based on UTC. Today that is a 10-digit number. Do not send a date string or milliseconds.

Why does Meta say my CAPI event_time is in the future?

Usually the value is in milliseconds, local time was treated as UTC, or the server clock is ahead. Check the payload and compare the server with date -u.

Does Meta Conversions API use my local timezone?

No. A Unix timestamp has no timezone and is always counted from UTC. Convert any local time to UTC before turning it into seconds.

How old can a Conversions API event be?

Meta's documentation allows web events to be sent up to 7 days after they happened. Older events can be dropped, so check the current docs for exact limits and send queued events promptly.

How do I check if my CAPI timestamps are correct?

Open Events Manager, check the Diagnostics tab for warnings, and send a test event in the Test Events tab. Also log your payload and confirm event_time is a 10-digit integer.

Why is event_time 13 digits long in my payload?

A 13-digit number is in milliseconds, which is what JavaScript's Date.now() returns. Divide by 1000 and round down with Math.floor(Date.now() / 1000).

Can FunnelGuard detect a wrong CAPI event_time?

No, not yet. It is a possible future check. FunnelGuard does monitor your funnel journeys and the tracking hits to ad platforms, but it does not inspect server-side timestamps.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.