Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

fix: use aware UTC for S3 log partitions (#811)

Rolly Calmad3278d20e720
diff --git a/burr/tracking/s3client.py b/burr/tracking/s3client.py
index 561d517a..2a822eb9 100644
--- a/burr/tracking/s3client.py
+++ b/burr/tracking/s3client.py
@@ -204,7 +204,7 @@ class S3TrackingClient(SyncTrackingClient):
self.stream_state: Dict[StateKey, StreamState] = dict()
def _get_time_partition(self):
- time = datetime.datetime.utcnow().isoformat()
+ time = datetime.datetime.now(datetime.UTC).isoformat()
return [time[:4], time[5:7], time[8:10], time[11:13], time[14:]]
def get_prefix(self):