Skip to content

Commit 7208634

Browse files
committed
fix #1626 parsed datetimes on datehistogram should be datetimekind.utc
1 parent 225e844 commit 7208634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Nest/Aggregations/Bucket/DateHistogram/DateHistogramBucket.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ namespace Nest
99
public class DateHistogramBucket : HistogramBucket
1010
{
1111
// Get a DateTime form of the returned key
12-
public DateTime Date => new DateTime(1970, 1, 1).AddMilliseconds(0 + this.Key);
12+
public DateTime Date => DateTime.SpecifyKind(new DateTime(1970, 1, 1).AddMilliseconds(0 + this.Key), DateTimeKind.Utc);
1313
}
1414
}

0 commit comments

Comments
 (0)