Skip to content

Commit 093eb68

Browse files
author
ci bot
committed
Merge branch 'qa-fixes-20250520' into 'enterprise'
fix(scoring): force history date into utc timezone See merge request dkinternal/testgen/dataops-testgen!216
2 parents b59533e + b836299 commit 093eb68

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

testgen/common/models/scores.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import uuid
33
from collections import defaultdict
44
from collections.abc import Iterable
5-
from datetime import datetime
5+
from datetime import UTC, datetime
66
from typing import Literal, Self, TypedDict
77

88
import pandas as pd
@@ -237,7 +237,11 @@ def as_cached_score_card(self) -> "ScoreCard":
237237

238238
for entry in self.history[-50:]:
239239
if entry.category in history_categories:
240-
score_card["history"].append({"score": entry.score, "category": entry.category, "time": entry.last_run_time})
240+
score_card["history"].append({
241+
"score": entry.score,
242+
"category": entry.category,
243+
"time": entry.last_run_time.replace(tzinfo=UTC),
244+
})
241245

242246
return score_card
243247

0 commit comments

Comments
 (0)