diff --git a/RingCentral.Tests/BatchGetTest.cs b/RingCentral.Tests/BatchGetTest.cs index 657e76856..ee9a7ee83 100644 --- a/RingCentral.Tests/BatchGetTest.cs +++ b/RingCentral.Tests/BatchGetTest.cs @@ -65,7 +65,7 @@ await rc.Authorize( ); var callLogsResponse = await rc.Restapi().Account().Extension().CallLog() - .List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.Today.AddYears(-1).ToString("O")}); + .List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.UtcNow.AddYears(-1).ToString("O")}); var callLogIds = string.Join(',', callLogsResponse.records.Select(r => r.id)); var batchResponses = await rc.Restapi().Account().Extension().CallLog(callLogIds).BatchGet(); @@ -94,7 +94,7 @@ await rc.Authorize( ); var callLogsResponse = await rc.Restapi().Account().Extension().CallLog() - .List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.Today.AddYears(-3).ToString("O")}); + .List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.UtcNow.AddYears(-3).ToString("O")}); var callLogIds = string.Join(',', callLogsResponse.records.Select(r => r.id)); var batchResponses = @@ -126,9 +126,8 @@ await rc.Authorize( ArgumentException argumentException = null; try { - var batchResponses = - await rc.BatchGet(rc.Restapi().Account().Extension().CallLog(callLogIds) - .Path()); + await rc.BatchGet(rc.Restapi().Account().Extension().CallLog(callLogIds) + .Path()); } catch (ArgumentException ae) {