Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshFerge committed Feb 23, 2024
1 parent 5f26f13 commit 8c40a51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sentry/replays/usecases/ingest/issue_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def report_rage_click_issue_with_replay_event(
metrics.incr("replay.rage_click_issue_creation_with_replay_event")

# Seconds since epoch is UTC.
timestamp = datetime.datetime.fromtimestamp(timestamp)
timestamp = timestamp.replace(tzinfo=datetime.UTC)
date = datetime.datetime.fromtimestamp(timestamp)
timestamp_utc = date.replace(tzinfo=datetime.UTC)

selector = selector
clicked_element = selector.split(" > ")[-1]
Expand All @@ -113,7 +113,7 @@ def report_rage_click_issue_with_replay_event(
platform="javascript",
project_id=project_id,
subtitle=selector,
timestamp=timestamp,
timestamp=timestamp_utc,
title=RAGE_CLICK_TITLE,
evidence_data={
# RRWeb node data of clicked element.
Expand Down

0 comments on commit 8c40a51

Please sign in to comment.