Skip to content

Commit

Permalink
fix: use time.RFC3339Nano instead of RFC3339
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Sep 29, 2023
1 parent 3472057 commit e00153f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/sync_upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (t *UpstreamPullJob) pull(ctx api.ScrapeContext, config upstream.UpstreamCo
req.SetBasicAuth(config.Username, config.Password)

params := url.Values{}
params.Add("since", t.lastRuntime.Format(time.RFC3339))
params.Add("since", t.lastRuntime.Format(time.RFC3339Nano))
req.URL.RawQuery = params.Encode()

httpClient := &http.Client{}
Expand Down

0 comments on commit e00153f

Please sign in to comment.