Handle formatting when the time in nanoseconds requires more than a single int64

Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>

Fixup for #617
This commit is contained in:
Thomas Jackson 2019-07-09 09:23:52 -07:00
parent b4cb89acd2
commit cd27091e79
1 changed files with 1 additions and 1 deletions

View File

@ -873,5 +873,5 @@ func (c apiClient) Do(ctx context.Context, req *http.Request) (*http.Response, [
}
func formatTime(t time.Time) string {
return strconv.FormatFloat(float64(t.UnixNano())/1e9, 'f', -1, 64)
return strconv.FormatFloat(float64(t.Unix())+float64(t.Nanosecond())/1e9, 'f', -1, 64)
}