Skip to content

Commit

Permalink
Merge pull request #32 from CameronRP/use-nano
Browse files Browse the repository at this point in the history
Use nano timestamp
  • Loading branch information
CameronRP authored Nov 21, 2021
2 parents e291f08 + 99c42ee commit ff8d1a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,9 @@ func handleHTTPResponse(resp *http.Response) error {
return nil
}

//formatTimestamp to time.RFC3339 format
//formatTimestamp to time.RFC3339Nano format
func formatTimestamp(t time.Time) string {
return t.UTC().Format(time.RFC3339)
return t.UTC().Format(time.RFC3339Nano)
}

func isHTTPSuccess(code int) bool {
Expand Down

0 comments on commit ff8d1a3

Please sign in to comment.