We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b59533e + b836299 commit 093eb68Copy full SHA for 093eb68
1 file changed
testgen/common/models/scores.py
@@ -2,7 +2,7 @@
2
import uuid
3
from collections import defaultdict
4
from collections.abc import Iterable
5
-from datetime import datetime
+from datetime import UTC, datetime
6
from typing import Literal, Self, TypedDict
7
8
import pandas as pd
@@ -237,7 +237,11 @@ def as_cached_score_card(self) -> "ScoreCard":
237
238
for entry in self.history[-50:]:
239
if entry.category in history_categories:
240
- score_card["history"].append({"score": entry.score, "category": entry.category, "time": entry.last_run_time})
+ score_card["history"].append({
241
+ "score": entry.score,
242
+ "category": entry.category,
243
+ "time": entry.last_run_time.replace(tzinfo=UTC),
244
+ })
245
246
return score_card
247
0 commit comments