:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(cdp): use UTC timestamp for internal events (#68833)
Frank Hamandc00736af25a5
diff --git a/posthog/cdp/internal_events.py b/posthog/cdp/internal_events.pyindex 82629452e7b7..481f1d0359d5 100644--- a/posthog/cdp/internal_events.py+++ b/posthog/cdp/internal_events.py@@ -1,6 +1,6 @@import uuidfrom dataclasses import dataclass-from datetime import datetime+from datetime import UTC, datetimefrom typing import Optionalimport structlog@@ -54,7 +54,7 @@ def create_internal_event(if data.event.uuid is None:data.event.uuid = str(uuid.uuid4())if data.event.timestamp is None:- data.event.timestamp = datetime.now().isoformat()+ data.event.timestamp = datetime.now(UTC).isoformat()return data