Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer committed Aug 5, 2024
1 parent 428ecb1 commit c81cd4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posthog/hogql_queries/insights/retention_query_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c81cd4f

Please sign in to comment.