File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
diracx-core/src/diracx/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 9
9
from enum import StrEnum
10
10
from typing import Literal
11
11
12
- from DIRAC .Core .Utilities import TimeUtilities
13
12
from pydantic import AwareDatetime , BaseModel , BeforeValidator , Field
14
13
from typing_extensions import Annotated , TypedDict
15
14
@@ -22,8 +21,8 @@ def good_utc_dt(v):
22
21
v = datetime .now (tz = timezone .utc )
23
22
24
23
if isinstance (v , str ):
25
- # The date is provided as a string in UTC
26
- v = TimeUtilities . fromString (v )
24
+ # The date is provided as a string.
25
+ v = datetime . fromisoformat (v )
27
26
28
27
if isinstance (v , datetime ):
29
28
if not v .tzinfo :
@@ -81,7 +80,7 @@ class InsertedJob(TypedDict):
81
80
JobID : int
82
81
Status : str
83
82
MinorStatus : str
84
- TimeStamp : datetime
83
+ TimeStamp : DiracUTCDatetime
85
84
86
85
87
86
class JobSummaryParams (BaseModel ):
You can’t perform that action at this time.
0 commit comments