Skip to content

Commit

Permalink
Remove start time
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewilley_microsoft committed May 2, 2024
1 parent 1234a81 commit d8ee98d
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,6 @@ private void VisitStoreResponseStatistics(
{
this.jsonWriter.WriteObjectStart();

this.jsonWriter.WriteFieldName("StartTimeUTC");
this.WriteDateTimeStringValue(storeResponseStatistics.RequestStartTime);

this.jsonWriter.WriteFieldName("ResponseTimeUTC");
this.WriteDateTimeStringValue(storeResponseStatistics.RequestResponseTime);

Expand Down Expand Up @@ -592,15 +589,15 @@ private void WriteStringValueOrNull(string value)
}
}

private void WriteDateTimeStringValue(DateTime? value)
private void WriteDateTimeStringValue(DateTime value)
{
if (value == null || !value.HasValue)
if (value == null)
{
this.jsonWriter.WriteNullValue();
}
else
{
this.jsonWriter.WriteStringValue(value.Value.ToString("o", CultureInfo.InvariantCulture));
this.jsonWriter.WriteStringValue(value.ToString("o", CultureInfo.InvariantCulture));
}
}

Expand Down

0 comments on commit d8ee98d

Please sign in to comment.