We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d79c433 commit ee2e096Copy full SHA for ee2e096
src/sentry/utils/dates.py
@@ -190,7 +190,7 @@ def outside_retention_with_modified_start(
190
191
# Need to support timezone-aware and naive datetimes since
192
# Snuba API only deals in naive UTC
193
- now = datetime.now(UTC) if start.tzinfo else datetime.utcnow()
+ now = datetime.now(UTC) if start.tzinfo else datetime.now(UTC)
194
start = max(start, now - timedelta(days=retention))
195
196
return start > end, start
0 commit comments