Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sentry/utils/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def outside_retention_with_modified_start(

# Need to support timezone-aware and naive datetimes since
# Snuba API only deals in naive UTC
now = datetime.now(UTC) if start.tzinfo else datetime.utcnow()
now = datetime.now(UTC) if start.tzinfo else datetime.now(UTC).replace(tzinfo=None)
start = max(start, now - timedelta(days=retention))

return start > end, start
Expand Down
Loading