From f6425ebb7cffec84cfb134a03bcf889f573c6ba7 Mon Sep 17 00:00:00 2001 From: Colin Chartier Date: Thu, 19 Sep 2024 16:42:01 -0400 Subject: [PATCH] fix(eap): make truncate even more permissive --- 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