Skip to content

Commit 49c42ee

Browse files
Fix datetime.utcnow() deprecation warning (#1203)
Co-authored-by: openhands <[email protected]>
1 parent e485bba commit 49c42ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/utils/consolidate_results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import os
1212
import re
1313
import sys
14-
from datetime import datetime
14+
from datetime import UTC, datetime
1515

1616
from tests.integration.utils.format_costs import format_cost
1717

@@ -54,7 +54,7 @@ def process_result_file(filepath):
5454

5555
def generate_report(results, trigger_text, commit_sha):
5656
"""Generate the consolidated markdown report."""
57-
timestamp = datetime.utcnow().strftime("%Y-%m-%d %H:%M UTC")
57+
timestamp = datetime.now(UTC).strftime("%Y-%m-%d %H:%M UTC")
5858

5959
# Calculate total cost
6060
total_cost = sum(result.get("total_cost", 0.0) for result in results)

0 commit comments

Comments
 (0)