Skip to content

Commit

Permalink
Improve reliability on non-UTC systems (#5547)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon authored Apr 20, 2021
1 parent 5ba013b commit c1d9aea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ public DateHistogramAggregationWithHardBoundsUsageTests(ReadOnlyCluster i, Endpo

var projects = Project.Projects.OrderBy(p => p.StartedOn).Skip(2).Take(5).ToArray();

_hardBoundsMinimum = projects.Min(p => p.StartedOn.Date);
_hardBoundsMaximum = projects.Max(p => p.StartedOn.Date);
_hardBoundsMinimum = projects.Min(p => DateTime.SpecifyKind(p.StartedOn.Date, DateTimeKind.Utc));
_hardBoundsMaximum = projects.Max(p => DateTime.SpecifyKind(p.StartedOn.Date, DateTimeKind.Utc));
}

protected override object AggregationJson => new
Expand Down

0 comments on commit c1d9aea

Please sign in to comment.