@@ -17,7 +17,7 @@ Creates a run associated to an experiment.
17
17
function createrun (mlf:: MLFlow , experiment_id; start_time= missing , tags= missing )
18
18
endpoint = " runs/create"
19
19
if ismissing (start_time)
20
- start_time = Int (trunc (datetime2unix (now ()) * 1000 ))
20
+ start_time = Int (trunc (datetime2unix (now (UTC )) * 1000 ))
21
21
end
22
22
result = mlfpost (mlf, endpoint; experiment_id= experiment_id, start_time= start_time, tags= tags)
23
23
MLFlowRun (result[" run" ][" info" ], result[" run" ][" data" ])
@@ -69,7 +69,7 @@ function updaterun(mlf::MLFlow, run_id::String, status::MLFlowRunStatus; end_tim
69
69
:end_time => end_time
70
70
)
71
71
if ismissing (end_time) && status. status == " FINISHED"
72
- end_time = Int (trunc (datetime2unix (now ()) * 1000 ))
72
+ end_time = Int (trunc (datetime2unix (now (UTC )) * 1000 ))
73
73
kwargs[:end_time ] = string (end_time)
74
74
end
75
75
result = mlfpost (mlf, endpoint; kwargs... )
@@ -233,7 +233,7 @@ Logs a metric value (or values) against a particular run.
233
233
function logmetric (mlf:: MLFlow , run_id:: String , key, value:: T ; timestamp= missing , step= missing ) where T<: Real
234
234
endpoint = " runs/log-metric"
235
235
if ismissing (timestamp)
236
- timestamp = Int (trunc (datetime2unix (now ()) * 1000 ))
236
+ timestamp = Int (trunc (datetime2unix (now (UTC )) * 1000 ))
237
237
end
238
238
mlfpost (mlf, endpoint; run_id= run_id, key= key, value= value, timestamp= timestamp, step= step)
239
239
end
0 commit comments