From c81cd4feab4f29cbede7cdad449fa14e435addbf Mon Sep 17 00:00:00 2001 From: Sandy Spicer Date: Mon, 5 Aug 2024 13:11:53 +0200 Subject: [PATCH] mypy --- posthog/hogql_queries/insights/retention_query_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posthog/hogql_queries/insights/retention_query_runner.py b/posthog/hogql_queries/insights/retention_query_runner.py index 7df621e5241bc..f5d817e2eb7f8 100644 --- a/posthog/hogql_queries/insights/retention_query_runner.py +++ b/posthog/hogql_queries/insights/retention_query_runner.py @@ -373,7 +373,9 @@ def get_date(self, first_interval): first_interval, self.query_date_range.interval_name.title() ) if self.query_date_range.interval_type == IntervalType.HOUR: - date = date + self.team.timezone_info.utcoffset(date) + utfoffset = self.team.timezone_info.utcoffset(date) + if utfoffset is not None: + date = date + utfoffset return date def calculate(self) -> RetentionQueryResponse: