Skip to content

Commit

Permalink
Also explictly use UTC in event filtering logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nemacysts committed Sep 18, 2024
1 parent d062095 commit 8bf156a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paasta_tools/kubernetes_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,7 @@ async def get_events_for_object(
)
events = events.items if events else []
if max_age_in_seconds and max_age_in_seconds > 0:
min_timestamp = datetime.now().timestamp() - max_age_in_seconds
min_timestamp = datetime.now(timezone.utc).timestamp() - max_age_in_seconds
events = [
evt
for evt in events
Expand Down

0 comments on commit 8bf156a

Please sign in to comment.