From 6fe79f0997f435c08bc4d0170ebf3ea3763c3ccd Mon Sep 17 00:00:00 2001 From: colin-sentry <161344340+colin-sentry@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:11:19 -0400 Subject: [PATCH] fix(eap): make attr table truncate even more permissive (#6327) This table is truncated to `toStartOfDay` and has weird artifacts around timezones, just truncate to a whole 48 hour span. --- snuba/web/rpc/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snuba/web/rpc/common.py b/snuba/web/rpc/common.py index 716cd2162d..04ea50857a 100644 --- a/snuba/web/rpc/common.py +++ b/snuba/web/rpc/common.py @@ -26,7 +26,7 @@ def truncate_request_meta_to_day(meta: RequestMeta) -> None: start_timestamp = datetime.utcfromtimestamp(meta.start_timestamp.seconds) end_timestamp = datetime.utcfromtimestamp(meta.end_timestamp.seconds) start_timestamp = start_timestamp.replace( - day=start_timestamp.day, hour=0, minute=0, second=0, microsecond=0 + day=start_timestamp.day - 1, hour=0, minute=0, second=0, microsecond=0 ) end_timestamp = end_timestamp.replace( day=end_timestamp.day + 1, hour=0, minute=0, second=0, microsecond=0