fix timezone offset handling (#1988)

* port tests to use DateTimeOffset

* drop the whitespace when emitting DateTimeOffset values

* tidy up stale regions
This commit is contained in:
Brendan Forster
2019-09-16 10:27:27 -03:00
committed by GitHub
parent ef7fe2680e
commit 6433b9123e
3 changed files with 96 additions and 85 deletions
@@ -79,7 +79,7 @@ public class SearchIssuesRequestTests
Assert.False(request.MergedQualifiers().Any(x => x.Contains(property.Key)));
// Set the parameter
property.Value(request, DateRange.GreaterThan(DateTime.Today.AddDays(-7)));
property.Value(request, DateRange.GreaterThan(new DateTimeOffset(DateTime.Today.AddDays(-7))));
// Ensure the specified parameter now exists
Assert.True(request.MergedQualifiers().Count(x => x.Contains(property.Key)) == 1);