Skip to content

Commit 3ea83df

Browse files
committed
fix(visual-recognition-v4): add DateTime format
1 parent fe1e4c1 commit 3ea83df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/Services/VisualRecognition/V4/VisualRecognitionService.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1682,11 +1682,11 @@ public bool GetTrainingUsage(Callback<TrainingEvents> callback, DateTime? startT
16821682
}
16831683
if (startTime != null)
16841684
{
1685-
req.Parameters["start_time"] = startTime;
1685+
req.Parameters["start_time"] = startTime.Value.ToString("yyyy-MM-dd");
16861686
}
16871687
if (endTime != null)
16881688
{
1689-
req.Parameters["end_time"] = endTime;
1689+
req.Parameters["end_time"] = endTime.Value.ToString("yyyy-MM-dd");
16901690
}
16911691

16921692
req.OnResponse = OnGetTrainingUsageResponse;

0 commit comments

Comments
 (0)