Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed Nov 1, 2024
1 parent d126a71 commit fb6d1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quesma/model/bucket_aggregations/auto_date_histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (query *AutoDateHistogram) TranslateSqlResponseToJson(rows []model.QueryRes
return model.JsonMap{
"buckets": []model.JsonMap{{
"key": query.key,
"key_as_string": time.UnixMilli(query.key).Format("2006-01-02T15:04:05.000-07:00"),
"key_as_string": time.UnixMilli(query.key).UTC().Format("2006-01-02T15:04:05.000"),
"doc_count": rows[0].LastColValue(),
}},
"interval": "100y", // seems working for bucketsNr=1 case. Will have to be changed for other cases.
Expand Down
2 changes: 1 addition & 1 deletion quesma/testdata/clients/clover.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ var CloverTests = []testdata.AggregationTestCase{
},
"doc_count": 1000,
"key": 1721399904783,
"key_as_string": "2024-07-19T16:38:24.783+02:00"
"key_as_string": "2024-07-19T14:38:24.783"
}
],
"interval": "100y",
Expand Down

0 comments on commit fb6d1bb

Please sign in to comment.