mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user