Skip to content

Commit

Permalink
fix(visual-recognition-v4): add DateTime format
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkowa committed Jun 16, 2021
1 parent fe1e4c1 commit 3ea83df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1682,11 +1682,11 @@ public bool GetTrainingUsage(Callback<TrainingEvents> callback, DateTime? startT
}
if (startTime != null)
{
req.Parameters["start_time"] = startTime;
req.Parameters["start_time"] = startTime.Value.ToString("yyyy-MM-dd");
}
if (endTime != null)
{
req.Parameters["end_time"] = endTime;
req.Parameters["end_time"] = endTime.Value.ToString("yyyy-MM-dd");
}

req.OnResponse = OnGetTrainingUsageResponse;
Expand Down

0 comments on commit 3ea83df

Please sign in to comment.