Skip to content

Commit 21c49bf

Browse files
committed
fix #1626 parsed datetimes should be DateTimeKind.Utc
1 parent ea07eb7 commit 21c49bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/Domain/Aggregations/HistogramItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public DateTime Date
1818
{
1919
get
2020
{
21-
return new DateTime(1970, 1, 1).AddMilliseconds(0 + this.Key);
21+
return DateTime.SpecifyKind(new DateTime(1970, 1, 1).AddMilliseconds(0 + this.Key), DateTimeKind.Utc);
2222
}
2323
}
2424

0 commit comments

Comments
 (0)