: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
chore(tests): pin clock in DST-sensitive timezone tests (#126896)
Phil Haackade92e55c324
diff --git a/posthog/hogql/transforms/test/test_preaggregated_table_transformation.py b/posthog/hogql/transforms/test/test_preaggregated_table_transformation.pyindex dcf6b0b42f25..2bd0baccc3d0 100644--- a/posthog/hogql/transforms/test/test_preaggregated_table_transformation.py+++ b/posthog/hogql/transforms/test/test_preaggregated_table_transformation.py@@ -1,6 +1,7 @@from datetime import UTC, datetimeimport unittest+import time_machinefrom posthog.test.base import APIBaseTest, BaseTest, ClickhouseTestMixin, QueryMatchingTest, snapshot_clickhouse_queriesfrom django.test import override_settings@@ -797,6 +798,7 @@ GROUP BY dateassert PREAGGREGATED_TABLE_NAME in queryself.assertQueryMatchesSnapshot(query)+ @time_machine.travel("2026-06-15T12:00:00Z", tick=False)def test_integer_timezones(self):assert is_integer_timezone("UTC")assert is_integer_timezone("Europe/London")diff --git a/products/marketing_analytics/backend/hogql_queries/test_attribution_sessions_read.py b/products/marketing_analytics/backend/hogql_queries/test_attribution_sessions_read.pyindex 9925e79ebfde..656afc762f0e 100644--- a/products/marketing_analytics/backend/hogql_queries/test_attribution_sessions_read.py+++ b/products/marketing_analytics/backend/hogql_queries/test_attribution_sessions_read.py@@ -211,6 +211,7 @@ class TestAttributionSessionsRead(SimpleTestCase):("America/Santiago", "2025-04-04", "2025-04-06", False, False),])+ @time_machine.travel("2025-11-10T12:00:00Z", tick=False)def test_ambiguous_date_boundaries_fall_back(self, timezone: str, date_from: str, date_to: str, explicit: bool, ambiguous: bool) -> None: