Skip to content

Commit 728f381

Browse files
committed
[fix] Using UTC time on result json
1 parent 95ef2f5 commit 728f381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_result.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ func (r *TestResult) SetUsedRandomSeed(seed int64) *TestResult {
8080
}
8181

8282
func (r *TestResult) FillDurationInfo(startTime time.Time, endTime time.Time, duration time.Duration) {
83-
r.StartTime = startTime.Unix()
84-
r.EndTime = endTime.Unix()
83+
r.StartTime = startTime.UTC().UnixNano() / 1000000
84+
r.EndTime = endTime.UTC().UnixNano() / 1000000
8585
r.DurationMillis = duration.Milliseconds()
8686
}
8787

0 commit comments

Comments
 (0)