Skip to content

Commit

Permalink
honeycombexporter: fix test to work correctly regardless of local tim…
Browse files Browse the repository at this point in the history
…ezone

The tests were failing while running locally.
The time zone of opencensus.start_timestamp was the local time +02:00 instead of Z.
  • Loading branch information
zeitlinger authored Sep 22, 2020
1 parent f436dc1 commit 097fc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/honeycombexporter/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func timestampToTime(ts *timestamppb.Timestamp) (t time.Time) {
if ts == nil {
return
}
return time.Unix(ts.Seconds, int64(ts.Nanos))
return time.Unix(ts.Seconds, int64(ts.Nanos)).UTC()
}

// getStatusCode returns the status code
Expand Down

0 comments on commit 097fc62

Please sign in to comment.