Skip to content

Commit 3ada08b

Browse files
authored
Convert phase started datestamp to utc (#266)
1 parent 1c6bde6 commit 3ada08b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

machine/jobs/build_clearml_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
import logging
33
import os
4-
from datetime import datetime
4+
from datetime import datetime, timezone
55
from typing import Callable, Optional, Union, cast
66

77
from clearml import Task
@@ -97,7 +97,7 @@ def report_clearml_progress(
9797
"type": datetime,
9898
"name": f"{progress_status.phase_stage}_started",
9999
"description": "Phase Started",
100-
"value": progress_status.phase_started,
100+
"value": progress_status.phase_started.astimezone(timezone.utc),
101101
}
102102
)
103103
if len(props) > 0:

0 commit comments

Comments
 (0)