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.
| Mistake | Example value | Result |
|---|---|---|
| Milliseconds instead of seconds | 1767225600000 | Looks like a date far in the future; event is rejected or ignored |
| Local time treated as UTC | Real UTC time plus 2 hours | Event appears to be in the future |
| Date string | 2025-01-31 10:00:00 | Invalid parameter error |
| Server clock ahead | Clock 10 minutes fast | Event time in the future |
| Old queued event | Sent more than 7 days after the action | Meta 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.
- Visitor submits formReal conversion happens
- Server builds CAPI payloadevent_time set in local time or ms
- Meta validates eventRejected or misdated
- Ad optimisationConversion missing from reports
The visitor converts, but the server event carries a bad time.
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
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.
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.
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.
Compare clocksCustom code
Run
date -uon the server and compare it with a trusted time source. A drift of more than a few seconds is worth fixing.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.
date -u
date +%sHow to fix it
The rule is the same everywhere: send an integer, in seconds, based on UTC. Pick your stack below.
Generate the value in seconds
Use
time()in PHP,Math.floor(Date.now() / 1000)in Node, orint(time.time())in Python. Never send a formatted date string.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.
Sync the server clock
Enable NTP time sync (for example chrony or systemd-timesyncd) so the clock does not drift ahead.
Check the CAPI plugin
Update the plugin that sends your Meta events (the official Meta plugin, or your form or WooCommerce integration). Timestamp bugs are often fixed in updates.
Check the site timezone
In Settings > General, make sure Timezone is a city or UTC offset, not a manual guess. Custom code should use
time(), which is always UTC.Review custom snippets
If a snippet builds the payload, replace any
strtotime(current_time('mysql'))withtime().
Use the native Meta channel
Shopify's Facebook and Instagram channel sets the time itself. If you use a third-party app or custom webhook sender, check its settings.
Fix custom webhook code
Shopify order timestamps are ISO 8601 strings. Convert them to Unix seconds before sending, for example
Math.floor(new Date(order.created_at).getTime() / 1000).
Open the server container tag
In a server-side GTM container, open your Meta Conversions API tag.
Check the event_time override
If you override event_time, use a value in seconds. Remove the override to let the tag use the incoming event time.
Check custom variables
A variable built with
Date.now()returns milliseconds. Divide by 1000 and round down.
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>'] }
}]
};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
- 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 -uand a trusted source - Event counts in Meta move closer to your CRM counts after a few days
How to prevent it happening again
- 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.
Related issues
- TRK-179CAPI not deduplicating with browser event (event_id mismatch)Fix guide
- TRK-180CAPI events missing entirelyFix guide
- TRK-178event_id missing on browser eventsFix guide
- TRK-182CAPI sending event_source_url of stagingFix guide
- TRK-183Event Match Quality low (no em/ph/external_id)Fix guide
- TRK-189Test event code left on production pixelFix guide