Skip to content

Commit 41b79da

Browse files
committed
store in utc
1 parent 75d4cb6 commit 41b79da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

eval_protocol/models.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import logging
33
import importlib
4-
from datetime import datetime
4+
from datetime import datetime, timezone
55
from enum import Enum
66
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
77

@@ -825,7 +825,10 @@ class EvaluationRow(BaseModel):
825825
description="Metadata about the execution of the evaluation.",
826826
)
827827

828-
created_at: datetime = Field(default_factory=datetime.now, description="The timestamp when the row was created.")
828+
created_at: datetime = Field(
829+
default_factory=lambda: datetime.now(timezone.utc),
830+
description="The timestamp when the row was created (UTC).",
831+
)
829832

830833
eval_metadata: Optional[EvalMetadata] = Field(
831834
default=None, description="Metadata about the evaluation that was run."

0 commit comments

Comments
 (0)